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

Initial support for common JUnit DB #412

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

ZakarFin
Copy link
Member

Creates a membased DB datasource for unit testing if a class from the shared-test-resources is present in the classpath. Checking things with reflection API so we don't need to add the test-module to dependencies but can detect test env if the class file is available.

Separated from #271 waiting for further development for this to be actually usable.

ZakarFin added a commit to jampukka/oskari-server that referenced this pull request Jun 27, 2019
@ZakarFin
Copy link
Member Author

ZakarFin commented Jan 12, 2022

More recent testing: https://github.com/oskariorg/oskari-server/compare/develop...ZakarFin:testdb?expand=1
Still struggling with the cyclic dependency ref. Probably needs refactoring of current modules or detaching tests to another module to make it work properly. Note! Upgrading Flyway means dropping postgres 9 support: https://flywaydb.org/documentation/database/postgresql

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.

1 participant