Bug #2560
closed
mvn integration-test doesn't seem to run the tests
Added by Anonymous over 9 years ago.
Updated over 9 years ago.
Description
When I run "mvn integration-test" it doesn't seem to run the tests. I can even delete the integration-tests folder and it doesn't seem to care. Does pom.xml need to mention this folder, like testSourceDirectory mentions the tests folder?
(We may have had this in an earlier version of pom.xml...)
Good call. I thought we put integration-test stuff in there... but I'm looking now and... nope. I will look into this one.
I think we should use the Failsafe plugin so that "mvn verify" at the top level runs all the integration tests. We can also add the sub pom.xml in the integration-tests folder for running individual tests. If there is an integration test which requires extra parameters or setup, we can exclude it from "mvn verify" at the top level. What do you think?
Sounds good; why don't you add the failsafe XML to the global POM (let me know if you want me to jump in on that) and I will continue work on the sub POM in the PR. If/when we merge, then I will exclude the RemotePrefixRegistrationTest from the global because it requires an external IP.
Can you jump in with adding Failsafe to the global POM?
Jeff, check out the branch I published. I had to move the integration-tests back under the global tests folder for failsafe to work as expected. Try mvn verify
and then mvn verify -P with-integration-tests
; I would prefer not running NFD-required tests by default because not all dev systems (i.e. mine) have NFD installed.
- Status changed from New to In Progress
Jeff, I believe that was an auto-refactor artifact and not intentional; I removed them in the latest commit.
- Status changed from In Progress to Closed
Great, thanks. I merged to master and will make a Maven release.
Also available in: Atom
PDF