Hi, I was playing with Spek the last two days, and...
# spek
a
Hi, I was playing with Spek the last two days, and I run into some problems, and I'm confused. The first problem is related to running tests: I wrote some Speks and JUnit tests just as a demo, when I run the tests with IntelliJ everything was ok!, but when I try to run the tests with Gradle then only the Speks are discovered but JUnit tests are not 😭 When I remove
includeEngines("spek2")
from my gradle build then all the tests run fine 👍 So my question: Is this behavior intended or is it a bug? My second problem is related to MockK:
r
includeEngines("spek2")
says I want to only run spek2 tests. You have to include the jupiter engine as well.
👍 1
IJ doesn't use that setting so it runs without any engine filters installed.
👍 1
a
So when I want to use both JUnit and Spek in the same project I have to not include spek2 engine?
r
Include both :)
a
But the problem is that when put
Copy code
useJUnitPlatform {
includeEngines("spek2")
}
and run gradle test task the JUnit tests are not discovered???
r
includeEngines("spek2", "jupiter")
-
jupiter
here is the test engine for JUnit 5.
👍 2
✔️ 2
😮 2
d
I was wondering why this happened to me.