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

org.junit.platform.commons.util.PreconditionViolationException: Could not load class with name #1

Open
raosuj opened this issue Nov 15, 2017 · 2 comments

Comments

@raosuj
Copy link

raosuj commented Nov 15, 2017

Hi, I am running into this issue when I try running the test.

WARNING: TestEngine with ID 'spek' failed to discover tests org.junit.platform.commons.util.PreconditionViolationException: Could not load class with name: org.spekframework.speksample.CalculatorSpec at org.junit.platform.engine.discovery.ClassSelector.lambda$getJavaClass$0(ClassSelector.java:71) at java.util.Optional.orElseThrow(Optional.java:290) at org.junit.platform.engine.discovery.ClassSelector.getJavaClass(ClassSelector.java:70) at org.jetbrains.spek.engine.SpekTestEngine.resolveSpecs(SpekTestEngine.kt:79) at org.jetbrains.spek.engine.SpekTestEngine.discover(SpekTestEngine.kt:50) at org.junit.platform.launcher.core.DefaultLauncher.discoverEngineRoot(DefaultLauncher.java:130) at org.junit.platform.launcher.core.DefaultLauncher.discoverRoot(DefaultLauncher.java:117) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:90) at org.jetbrains.spek.tooling.runner.junit.JUnitPlatformSpekRunner.run(JUnitPlatformSpekRunner.kt:107) at org.jetbrains.spek.tooling.MainKt.main(Main.kt:58) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.intellij.rt.execution.application.AppMainV2.main(AppMainV2.java:131)
PS: Seeing this issue only on canary android studio 3/3.1. Stable 3.0 works fine, thanks

@radityagumay
Copy link

@raosuj hi, please take a look my PR #2, if this solve you issue, please close this. thanks

@radityagumay
Copy link

@raniejade as a new PR this issue should closed.

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

2 participants