Add JS specific proto comparison test

Original commit: 239943867b
This commit is contained in:
Alexey Tsvetkov
2017-08-10 00:34:02 +03:00
parent d36907bc8f
commit 450022e5fd
4 changed files with 55 additions and 0 deletions
@@ -272,4 +272,19 @@ public class JsProtoComparisonTestGenerated extends AbstractJsProtoComparisonTes
doTest(fileName);
}
}
@TestMetadata("jps-plugin/testData/comparison/jsOnly")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class JsOnly extends AbstractJsProtoComparisonTest {
public void testAllFilesPresentInJsOnly() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("jps-plugin/testData/comparison/jsOnly"), Pattern.compile("^([^\\.]+)$"), TargetBackend.ANY, true);
}
@TestMetadata("externals")
public void testExternals() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("jps-plugin/testData/comparison/jsOnly/externals/");
doTest(fileName);
}
}
}