If tacoco does not find any test class inside the folder. It fails with Null pointer Exception.
In the method runTests in AbstractRuntimeAnalyzer, the AbstractTestRunner sets to null if AbstractBuildProbe does not return any testclass. This leads to Null pointer exception when runner tries to run the class.
protected void runTests(List<Class<?>> klasses) {
List<Future> futureAnalysisResults = new ArrayList<>();
int nThread = Integer.parseInt(readOptionalArgumentValue(THREAD, "1"));
ExecutorService threadPool = Executors.newFixedThreadPool(nThread);
AbstractTestRunner runner = AbstractTestRunner.getInstance(this.buildProbe); // Here runner is null if no test class found.
If tacoco does not find any test class inside the folder. It fails with Null pointer Exception.
In the method runTests in AbstractRuntimeAnalyzer, the AbstractTestRunner sets to null if AbstractBuildProbe does not return any testclass. This leads to Null pointer exception when runner tries to run the class.
protected void runTests(List<Class<?>> klasses) { List<Future> futureAnalysisResults = new ArrayList<>();
int nThread = Integer.parseInt(readOptionalArgumentValue(THREAD, "1"));
ExecutorService threadPool = Executors.newFixedThreadPool(nThread);
AbstractTestRunner runner = AbstractTestRunner.getInstance(this.buildProbe); // Here runner is null if no test class found.