:wave: I have a small issue with running tests in ...
# kotlintest
t
👋 I have a small issue with running tests in Intellij IDEA; that when I double-click / mark and hit enter on a stringspec test in Intellij IDEA test results, the IDE does not lead me to the test code, instead, nothing happens. Has anyone experienced the same? A bit about the project if relevant: It's a Spring Boot 2.1.10 project with maven-surefire-plugin 3.0.0-M1, junit5 and kotlintest (tests are written in both junit5 and kotlintest). We also use testcontainers that have a dependency on junit4.
Also, when I try to run a single test, Intellij IDEA runs them all, which is also slightly ineffective
m
For the single test, there's a known issue for JUnit Test Runner and IDE Configurations. I don't recall the issue number. The workaround is to delete all JUnit Run Configurations for that class, and then attempt to run a single test again. That usually works. For navigation, are you using the Kotlintest Intellij plugin? I think that works better.
t
Thanks @Mike! I have the kotlintest 3.3.0.11 plugin installed. Should I disable other plugins for it to work correctly?
m
That I don't know. Don't have too much experience with Kotlintest.
👍 1
l
I believe you must execute using KotlinTest executor, not Junit nor Gradle