JUnitCore Stopping
问题 I want to stop/destroy a running JUnitCore, which is started with JUnitCore.run(Request.aClass(ClassToRun)); Like pleaseStop() on the RunNotifier. Any ideas? http://junit.sourceforge.net/javadoc/org/junit/runner/package-summary.html 回答1: Option 1: the best option is to write your own Runner implementation, inherited from org.junit.runners.BlockJUnit4ClassRunner and declare it in your execution context, for instance as Main Class of a raw Java command line. Get inspired of JUnit source code