The ask here would be to implement a test listener similar to Junit mentioned in the article below.
in some cases we need to do cleanup after all the suites have finished execution.
public class TestListener extends RunListener {
@Override
public void testRunStarted(Description description) throws Exception {
// Called before any tests have been run.
}
@Override
public void testRunFinished(Result result) throws Exception {
// Called when all tests have finished
}
}
The ask here would be to implement a test listener similar to Junit mentioned in the article below.
in some cases we need to do cleanup after all the suites have finished execution.
public class TestListener extends RunListener { @Override public void testRunStarted(Description description) throws Exception { // Called before any tests have been run. } @Override public void testRunFinished(Result result) throws Exception { // Called when all tests have finished } }
https://stackoverflow.com/questions/9903341/cleanup-after-all-junit-tests