mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2025-01-08 07:54:11 -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);
|
setupTool(tool);
|
||||||
try {
|
try {
|
||||||
|
if (!testFiles.isDirectory()) {
|
||||||
|
throw new MojoFailureException("Directory with tests doesn't exist: " + testFiles);
|
||||||
|
}
|
||||||
getLog().info("Searching for tests in the directory `" + testFiles.getAbsolutePath() + "'");
|
getLog().info("Searching for tests in the directory `" + testFiles.getAbsolutePath() + "'");
|
||||||
tool.setAdapter(createAdapter(classLoader));
|
tool.setAdapter(createAdapter(classLoader));
|
||||||
findTestClasses(classLoader, testFiles, "");
|
findTestClasses(classLoader, testFiles, "");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user