Don't always run code in Ant task tests

But when running code, do it via <java> task, not via custom testing code. Most
of the time the compiled code need not be runned, because it's irrelevant to
the Ant task itself
This commit is contained in:
Alexander Udalov
2015-06-04 22:02:23 +03:00
parent 968d362b77
commit 0f6c23e1c4
21 changed files with 34 additions and 72 deletions
@@ -47,6 +47,11 @@ public class AntTaskJsTest extends AntTaskBaseTest {
return new File(new File(ANT_TASK_TEST_DATA_BASE_DIR, "js"), name.getMethodName());
}
@NotNull
private File getOutputFileByName(@NotNull String name) {
return new File(tmpdir.getTmpDir(), name);
}
private void doJsAntTest(String... jsFiles) throws Exception {
doAntTest();