Search code examples
mavenmaven-failsafe-plugin

Running a certain test last using maven


I am using Maven and the failsafe plugin to execute a set of runners that run integration tests.

One of these runners execute tests that involve altering my configuration. For this reason, I would like this runner to be executed only when the other tests have finished executing. Otherwise, there is the possibility of unrepresentative tests.

How can I go about this?


Solution

  • To expand on @khmarbaise comment, in Testng you have annotations that can help you set and reset config files http://testng.org/doc/documentation-main.html#annotations