I have unit tests and selenium integration-tests set up in my pom. I only want to run the integration tests when I run the code coverage with clover at the pre-site phase, but when I run the following maven command my integration tests run twice.
clean install site
I have the clover plugin attached to the pre-site phase so when it hits the pre-site the clover build and testing kicks off. This is fine. However the install phase is running through the default lifecycle and kicking off the pre-integration-test,integration-test and port-integration-test phases.
I know that the 'install' command is causing the problem as it runs all the phases pre-ceding the install phase as well but I cannot see anyway of getting the install command to 'skip' all three integration phases.
I can run the integration tests on their own using the 'integration-test' comamnd as I have different profiles set up to include/exclude unit tests/integration tests. Whenever I add the 'install' comamdn though I see the integration-tests running twice.
Does anyone have any ideas?
Hello everyone, I am a product manager in the Jira Cloud team focused on making sure our customers have a delightful experience using our products. Towards that goal, one of the areas which is extr...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events