Add test on "kotlinc-js -help" output

This commit is contained in:
Alexander Udalov
2014-06-25 21:42:32 +04:00
parent ebec9e961c
commit 5e994778d1
4 changed files with 28 additions and 1 deletions
@@ -171,6 +171,11 @@ public class KotlincExecutableTestGenerated extends AbstractKotlincExecutableTes
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.TestsPackage", new File("compiler/testData/cli/js"), Pattern.compile("^(.+)\\.args$"), true);
}
@TestMetadata("jsHelp.args")
public void testJsHelp() throws Exception {
doJsTest("compiler/testData/cli/js/jsHelp.args");
}
@TestMetadata("outputPostfixFileNotFound.args")
public void testOutputPostfixFileNotFound() throws Exception {
doJsTest("compiler/testData/cli/js/outputPostfixFileNotFound.args");
@@ -16,8 +16,8 @@
package org.jetbrains.jet.cli.js;
import junit.framework.Assert;
import org.jetbrains.jet.cli.CliBaseTest;
import org.junit.Assert;
import org.junit.Test;
import java.io.File;
@@ -43,4 +43,9 @@ public class K2JsCliTest extends CliBaseTest {
Assert.assertFalse(new File(tmpdir.getTmpDir(), "out.js").isFile());
}
@Test
public void jsHelp() throws Exception {
executeCompilerCompareOutputJS();
}
}