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?
Cheers
Hunty
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.