Invoking tests$ mvn teavm:compile teavm:testCompile teavm:test should fail with reasonable error and not NPE

This commit is contained in:
Jaroslav Tulach 2015-10-11 14:40:19 +02:00
parent 5ae39f6465
commit 7c07e1d9de

View File

@ -93,6 +93,9 @@ public class BuildJavascriptTestMojo extends AbstractJavascriptMojo {
setupTool(tool);
try {
if (!testFiles.isDirectory()) {
throw new MojoFailureException("Directory with tests doesn't exist: " + testFiles);
}
getLog().info("Searching for tests in the directory `" + testFiles.getAbsolutePath() + "'");
tool.setAdapter(createAdapter(classLoader));
findTestClasses(classLoader, testFiles, "");