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
Move test involving embedded database to an integration test project and mock in unit tests #146
Comments
Let me partially disagree with you. Tests are directly related to working with OrientDB and they are organized in pretty much the same way as tests in OrientDB themself. If you have concern about opening sockets: that might be disabled in orienteer-test.properties |
Noted. I guess it's just |
I see what do you mean... orienteer-archetype-war is maven archetype for quick bootstraping of new projects on top of Orienteer. https://maven.apache.org/guides/introduction/introduction-to-archetypes.html If you don't want to build everything on every small change: I recommend to work just within orienteer-core. And btw, it's possible to run "mvn clean jetty:run" for this jar project. |
It's possible to use -DskipITs |
Unit tests shouldn't open sockets and start embedded database servers. That's integration testing. Afaik that's done in separate
-it
projects inmaven
. The existing tests which are in fact integration tests should be moved to such a project. Unit tests should use mocks.There's the
orienteer-archetype-war
project whose meaning I don't fully understand. It executes integration tests which run even if-DskipTests=true
is specified asmaven
option (might be a separate issue).The text was updated successfully, but these errors were encountered: