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
raniejade
02/10/2019, 9:49 PM
includeEngines("spek2")
says I want to only run spek2 tests. You have to include the jupiter engine as well.
👍 1
raniejade
02/10/2019, 9:51 PM
IJ doesn't use that setting so it runs without any engine filters installed.
👍 1
a
alilosoft
02/10/2019, 9:57 PM
So when I want to use both JUnit and Spek in the same project I have to not include spek2 engine?
r
raniejade
02/10/2019, 9:58 PM
Include both :)
a
alilosoft
02/10/2019, 10:02 PM
But the problem is that when put
Copy code
useJUnitPlatform {
includeEngines("spek2")
}
and run gradle test task the JUnit tests are not discovered???