-
-
Notifications
You must be signed in to change notification settings - Fork 359
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Filter out anonymous classes during test discovery (#3911)
Mitigates #3910 by hackily filtering out all anonymous classes, but non-anonymous non-test classes still cause the problem Added a unit test to check this specific misbehavior
- Loading branch information
Showing
3 changed files
with
43 additions
and
6 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
kotlinlib/test/resources/hello-world-kotlin/main/kotest/src/FooTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package hello.tests | ||
|
||
import io.kotest.core.spec.style.FunSpec | ||
import io.kotest.matchers.shouldBe | ||
import hello.getHelloString | ||
|
||
class FooTest : FunSpec({ | ||
test("testFailure") { | ||
getHelloString() shouldBe "Hello, world!" | ||
} | ||
|
||
test("testSuccess") { | ||
getHelloString() shouldBe "WRONG!" | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters