I have a multi-module project with unit tests and integration tests. We're using Jenkins for our pipeline:
- build + unit tests
- deploy to staging
- integration tests against staging.
What I want to achieve is:
- Step one - build + unit test + package + install
- Step two - deploy already packaged artifacts
- Step three - run integration tests (without building all over again)
Step three starts from a clean checkout, so there isn't even a target
folder.
Edit - the integration test run inside a profile, so they don't run during the first build
What I want to achieve is to run the integration tests (step three) without compiling the code.
If I use mvn failsafe:integration-tests
it says that there aren't any tests (obviously because it doesn't find any artifact).
When I add dependenciesToScan
it says that it doesn't find the junit provider (groups/excludedGroups require TestNG, JUnit48+ or JUnit 5 on project test classpath
).
Can someone help on how to implement running the tests when the jars are in the local repo, without compiling?