Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#43: DBTestSuite: parametrize persist_data into constructor #46

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

benedeki
Copy link
Contributor

  • make it easy to override data persitence in the DBTestSuite class, without the need to override functions.

Closes #43

Release notes:

  • easier override of the data persistence within DBTestSuite instance via constructor parameter (no need to function overrides)

* make it easy to override data persitence in the `DBTestSuite` class, without the need to override functions.
Copy link

github-actions bot commented Oct 16, 2024

JaCoCo 'balta' module code coverage report - scala 2.12.18

Overall Project 45.73% -3.31% 🍏
Files changed 0% 🍏

File Coverage
DBTestSuite.scala 0% -52.03% 🍏

Copy link
Collaborator

@miroslavpojer miroslavpojer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • pulled
  • code review done
  • run all tests

@@ -44,7 +48,9 @@ abstract class DBTestSuite extends AnyFunSuite {
/**
* This is the connection info for the DB. It can be overridden in the derived classes to provide specific credentials
*/
protected lazy val connectionInfo: ConnectionInfo = readConnectionInfoFromConfig
protected lazy val connectionInfo: ConnectionInfo = {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By this change, you kept the private method readConnectionInfoFromConfig without usage. Is that intention?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for noticing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DBTestSuite: parametrize persist_data into constructor
2 participants