mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
Invoking tests$ mvn teavm:compile teavm:testCompile teavm:test should fail with reasonable error and not NPE
This commit is contained in:
parent
5ae39f6465
commit
7c07e1d9de
|
@ -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, "");
|
||||
|
|
Loading…
Reference in New Issue
Block a user