Hi! I added Kotest to an existing Android project ...
# kotest
e
Hi! I added Kotest to an existing Android project which already had its own Junit tests. Today I’ve noticed the Kotest tests are working perfectly but this is not the case of the junit ones. They are not working even launching them explicitly 😨. Is there some kind of incompatibility of using both tests at the same time?
s
Wild stab in the dark: maybe when you added Kotest it switched you from junit4 to junit5. If that's the case, you would need to configure junit's 'vintage' engine to allow junit5 to keep running the old junit4 tests.
👀 1
e
I’ll check it, thanks!
s
Yep you need to add the junit4 dep
e
Sorry 🙏, where should I add it?
s
Off the top of my head:
Copy code
dependencies {
  testRuntimeOnly("org.junit.vintage:junit-vintage-engine:$yourVersion")
}
in the project that the tests are executed from
e
I’ll try it, thanks!!!
It works perfectly, thanks!!!
🐕 2
🎉 2