Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AbstractMethodError when running test from IntelliJ #40

Closed
xgouchet opened this issue Jun 1, 2017 · 1 comment
Closed

AbstractMethodError when running test from IntelliJ #40

xgouchet opened this issue Jun 1, 2017 · 1 comment

Comments

@xgouchet
Copy link

xgouchet commented Jun 1, 2017

I'm getting an AbstractMethodError whenever I try to run a test using the icons in the gutter :

Testing started at 20:01 ...
Jun 01, 2017 8:01:22 PM org.junit.platform.launcher.core.ServiceLoaderTestEngineRegistry loadTestEngines
INFO: Discovered TestEngines with IDs: [spek]
Exception in thread "main" java.lang.AbstractMethodError: Method org/jetbrains/spek/engine/Scope$Group.isTest()Z is abstract
	at org.jetbrains.spek.engine.Scope$Group.isTest(Scope.kt)
	at org.junit.platform.engine.TestDescriptor.hasTests(TestDescriptor.java:160)
	at org.junit.platform.launcher.core.Root.lambda$static$0(Root.java:33)
	at org.junit.platform.engine.TestDescriptor.accept(TestDescriptor.java:179)
	at org.junit.platform.engine.TestDescriptor.lambda$accept$0(TestDescriptor.java:181)
	at java.lang.Iterable.forEach(Iterable.java:75)
	at org.junit.platform.engine.TestDescriptor.accept(TestDescriptor.java:181)
	at org.junit.platform.launcher.core.Root.lambda$acceptInAllTestEngines$2(Root.java:85)
	at java.util.LinkedHashMap$LinkedValues.forEach(LinkedHashMap.java:608)
	at org.junit.platform.launcher.core.Root.acceptInAllTestEngines(Root.java:85)
	at org.junit.platform.launcher.core.Root.prune(Root.java:77)
	at org.junit.platform.launcher.core.DefaultLauncher.discoverRoot(DefaultLauncher.java:117)
	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:85)
	at org.jetbrains.spek.tooling.runner.junit.JUnitPlatformSpekRunner.run(JUnitPlatformSpekRunner.kt:107)
	at org.jetbrains.spek.tooling.MainKt.main(Main.kt:58)

The tests run without error when running the junitPlatformTest from gradle.

I'm using :

  • IntelliJ 2017.1.3
  • Spek Plugin 0.3.4
  • Spek library 1.1.2
  • JUnit Platform Gradle plugin 1.0.0-M4
  • Kotlin version 1.1.2-4

Let me know if you need more information on this issue

@xgouchet
Copy link
Author

xgouchet commented Jun 2, 2017

I found that this was a duplicate of #37 : adding testRuntime "org.junit.platform:junit-platform-launcher:1.0.0-M4" solved this issue for me.

@xgouchet xgouchet closed this as completed Jun 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant