Debugger: Add filter for Kotlin specific classes

#KT-2076 Fixed
This commit is contained in:
Natalia Ukhorskaya
2014-08-29 14:04:21 +04:00
parent f26ea299dc
commit 741f55d89c
19 changed files with 286 additions and 2 deletions
@@ -51,7 +51,12 @@ public abstract class AbstractKotlinSteppingTest : KotlinDebuggerTestCase() {
configureSettings(fileText)
createDebugProcess(path)
onBreakpoint { stepInto() }
val count = findStringWithPrefixes(fileText, "// REPEAT: ")?.toInt() ?: 1
for (i in 1..count) {
onBreakpoint { stepInto() }
}
finish()
}
@@ -181,6 +181,21 @@ public class KotlinSteppingTestGenerated extends AbstractKotlinSteppingTest {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/debugger/tinyApp/src/filters"), Pattern.compile("^(.+)\\.kt$"), true);
}
@TestMetadata("checkNotNull.kt")
public void testCheckNotNull() throws Exception {
doStepIntoTest("idea/testData/debugger/tinyApp/src/filters/checkNotNull.kt");
}
@TestMetadata("npe.kt")
public void testNpe() throws Exception {
doStepIntoTest("idea/testData/debugger/tinyApp/src/filters/npe.kt");
}
@TestMetadata("reflectKClass.kt")
public void testReflectKClass() throws Exception {
doStepIntoTest("idea/testData/debugger/tinyApp/src/filters/reflectKClass.kt");
}
@TestMetadata("skipClassloader.kt")
public void testSkipClassloader() throws Exception {
doStepIntoTest("idea/testData/debugger/tinyApp/src/filters/skipClassloader.kt");