I have three projects I'm attempting to get it wor...
# spek
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.
sorry, got caught up in a bunch of work stuff. I’ve got the project cloned you sent from GH. I’ll take a look at it first thing tomorrow. Now it’s nearly 10pm so time to wrap up for the night
that should work for you. You had some configuration issues, some missing dependencies
@hhariri I actually didn't post the project I had gotten working. And that dropbox linked project doesn't work for me in maven either, I get this error
Copy code
[INFO] --- maven-surefire-plugin:2.19:test (default-test) @ kotlin-spek-maven ---

 T E S T S

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.835 s
[INFO] Finished at: 2017-04-27T09:16:35-06:00
[INFO] Final Memory: 31M/391M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19:test (default-test) on project kotlin-spek-maven: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.19:test failed: There was an error in the forked process
[ERROR] java.lang.AbstractMethodError: Method org/jetbrains/spek/engine/Scope$Group.getType()Lorg/junit/platform/engine/TestDescriptor$Type; is abstract
[ERROR] at org.jetbrains.spek.engine.Scope$Group.getType(Scope.kt)
[ERROR] at org.junit.platform.launcher.TestIdentifier.from(TestIdentifier.java:60)
[ERROR] at org.junit.platform.launcher.TestPlan.lambda$from$0(TestPlan.java:78)
[ERROR] at org.junit.platform.engine.TestDescriptor.accept(TestDescriptor.java:245)
[ERROR] at org.junit.platform.engine.TestDescriptor.lambda$accept$0(TestDescriptor.java:247)
[ERROR] at java.lang.Iterable.forEach(Iterable.java:75)
[ERROR] at org.junit.platform.engine.TestDescriptor.accept(TestDescriptor.java:247)
[ERROR] at org.junit.platform.launcher.TestPlan.lambda$from$1(TestPlan.java:79)
[ERROR] at java.util.LinkedHashMap$LinkedValues.forEach(LinkedHashMap.java:600)
[ERROR] at org.junit.platform.launcher.TestPlan.from(TestPlan.java:79)
[ERROR] at org.junit.platform.launcher.core.DefaultLauncher.discover(DefaultLauncher.java:79)
[ERROR] at org.junit.platform.surefire.provider.TestPlanScannerFilter.accept(TestPlanScannerFilter.java:52)
[ERROR] at org.apache.maven.surefire.util.DefaultScanResult.applyFilter(DefaultScanResult.java:98)
[ERROR] at org.junit.platform.surefire.provider.JUnitPlatformProvider.scanClasspath(JUnitPlatformProvider.java:100)
[ERROR] at org.junit.platform.surefire.provider.JUnitPlatformProvider.invoke(JUnitPlatformProvider.java:92)
[ERROR] at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:286)
[ERROR] at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:240)
[ERROR] at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
[ERROR] -> [Help 1]
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.
Copy code
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!
JUnit Jupiter  Time elapsed: 0.012 sec  <<< FAILURE!
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?
ok, it looks like it works with m3. thanks for the help!
How will we know (in the future) which versions to use with which spek versions and so-on?