[Recent Tests] added test to ensure failed test is shown if no suite is associated with it

This commit is contained in:
Yaroslav Lepenkin
2016-08-09 18:18:53 +03:00
parent 3fd3c98bb3
commit 01a4286bc5
@@ -91,6 +91,14 @@ class RecentTestsStepTest: LightIdeaTestCase() {
assertThat(tests).hasSize(1)
assertThat(tests[0].presentation).isEqualTo("JFSDTest.testItMakesMeSadToFixIt")
}
fun `test show test without suite`() {
data.addTest("Test.sssss".test(), FAILED_INDEX, now, allTests)
val testsToShow = data.getTestsToShow()
assertThat(testsToShow).hasSize(1)
}
}