public void cancel() {
        canceled = true;
        for (Test test : tests) {
            test.cancel();
        }
    }
This thread initialize all selected tests and runs them through. Also the thread skips the tests, when it is canceled
EventBusPerformance/src/org/greenrobot/eventbusperf/TestRunner.java