Karınca'nın görevinden değil.
Test paketinizi "el ile" çalıştıran bir ana yöntem yazmalısınız. Kendi Runner'ı verin ve run(RunNotifier notifier)
geçersiz:
package test;
import org.junit.runner.Request;
import org.junit.runner.Result;
import org.junit.runner.Runner;
import org.junit.runner.notification.RunListener;
import org.junit.runner.notification.RunNotifier;
public class RollYourOwnTestRun {
public static void main(String[] args) {
Runner runner = Request.classes(StackTest.class).getRunner();
RunNotifier notifier = new RunNotifier();
Result result= new Result();
RunListener listener= result.createListener();
notifier.addListener(listener);
notifier.addListener(...); // add your listener
notifier.fireTestRunStarted(runner.getDescription());
runner.run(fNotifier);
notifier.fireTestRunFinished(result);
}
}