Issues with running individual Kotests from IntelliJ in a test class.
I setup a new Gradle/Kotlin project in IntelliJ with the Kotest plugin and Kotest 5.0.1 dependencies in the build.gradle. I created a new test class with two tests using StringSpec (I tried FunSpec too).
⢠When I run the test class, both tests run successfully.
⢠When I run the first test, it runs successfully.
⢠When I attempt to run just the 2nd test, I get the message "both tests filtered out" or something like that.
I'm kicking off these tests in the IDE using the Kotest plugin panel. Has anyone seen anything like this before? I can provide more details. For now, I've moved on and removed Kotest, and everything is working as expected using pure JUnit5.
s
sam
12/01/2021, 7:06 PM
Can you share the name of the two tests and the spec class
sam
12/01/2021, 7:06 PM
so we can create a stub file with the same structure
r
rossman
12/01/2021, 7:13 PM
Hey @sam I'm happy to create something and put it on GitHub if that's helpful, just lmk.
s
sam
12/01/2021, 7:18 PM
yes pls
r
rossman
12/01/2021, 7:23 PM
OK, I'll put something up later today, thanks!
šš» 1
rossman
12/02/2021, 4:55 AM
Hey @sam I just recreated the FunSpec tests that I was having trouble with in the IDE last night, and they are all working fine now š¤·āāļø . So anyway, sorry for the trouble, I'll report back if it happens again. Maybe my computer just needed a good reboot, LOL.