I have two sets of integration tests in one maven project - automatic and manual tests. Manual tests are few, but tiring - they need to pull the server plug, etc. I would like to create a separate goal for manual tests, so I can run something like mvn manualteststo run manual tests. If you just run a normal maven build mvn installor something, automatic tests should be done.
I already annotated manual tests using the TestNG annotation @Test(groups="manual". The goal is now to have two surefire plugin configurations, one of which runs automated tests related to the test build phase, and one that runs manual tests related to the other custom phase, which I would call manualtests. It seems that it is impossible to link the execution of the plugin to a non-existent phase (that is, which is not predefined by maven). Is it impossible to define your own phases?
source
share