I have three projects I'm attempting to get it working with. Two I found on github, one of those two is able to run in both intellij and maven, but it's source and test sources are both in src/main/kotlin and src/test/kotlin, so I found a different project where it's more along the lines of what I have, where the src is in src/main/java and the tests are in src/test/java and the src is java and the tests are kotlin. I was able to modify that to get it working, but attempting to do the same with our company project (which has multiple levels of parent poms and plugin management) has not been successful.
6 replies
Changing junit-platform-surefire-provider to M3 makes the tests run with maven, but it runs them twice, one with spek and one with jupiter.
INFO: Discovered TestEngines with IDs: [spek, junit-jupiter]
Running sample.SampleSpecs
Tests run: 2, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec <<< FAILURE! - in sample.SampleSpecs
it should fail Time elapsed: 0.007 sec <<< FAILURE!
null
JUnit Jupiter Time elapsed: 0.012 sec <<< FAILURE!
null
also, we don't have jupiter in our project, we're using junit 4. will we be able to use jupiter just for the spek tests?