Minor. Added test when compilation error is introduced and fixed in other package.

Original commit: 155775f925
This commit is contained in:
Evgeny Gerashchenko
2014-10-29 19:29:12 +03:00
parent 08831faa5c
commit 6917c317ba
11 changed files with 42 additions and 3 deletions
@@ -117,9 +117,15 @@ public class IncrementalJpsTestGenerated extends AbstractIncrementalJpsTest {
doTest(fileName);
}
@TestMetadata("compilationErrorThenFixed")
public void testCompilationErrorThenFixed() throws Exception {
String fileName = JetTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/compilationErrorThenFixed/");
@TestMetadata("compilationErrorThenFixedOtherPackage")
public void testCompilationErrorThenFixedOtherPackage() throws Exception {
String fileName = JetTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/compilationErrorThenFixedOtherPackage/");
doTest(fileName);
}
@TestMetadata("compilationErrorThenFixedSamePackage")
public void testCompilationErrorThenFixedSamePackage() throws Exception {
String fileName = JetTestUtils.navigationMetadata("jps-plugin/testData/incremental/pureKotlin/compilationErrorThenFixedSamePackage/");
doTest(fileName);
}
@@ -0,0 +1,14 @@
Cleaning output files:
out/production/module/usage/UsagePackage$usage$*.class
out/production/module/usage/UsagePackage.class
End of files
Compiling files:
src/usage.kt
End of files
COMPILATION FAILED
Kotlin:ERROR:Expecting an expression
Compiling files:
src/usage.kt
End of files
@@ -0,0 +1,4 @@
package f
fun f() {
}
@@ -0,0 +1,5 @@
package usage
fun main(args: Array<String>) {
f.f()
}
@@ -0,0 +1,5 @@
package usage
fun main(args: Array<String>) {
f.f(
}
@@ -0,0 +1,5 @@
package usage
fun main(args: Array<String>) {
f.f()
}