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

Existing cucumber tests will not work after adding Karate dependencies (0.9.4) bug #848

Closed
viveksr80 opened this issue Jul 29, 2019 · 3 comments
Labels

Comments

@viveksr80
Copy link

Problem:
After including Karate dependencies in existing cucumber project, not able to execute existing scripts, getting below error.

java.lang.NoSuchMethodError: cucumber.api.CucumberOptions.snippets()Lcucumber/api/SnippetType;

at cucumber.runtime.RuntimeOptionsFactory.addSnippets(RuntimeOptionsFactory.java:58)
at cucumber.runtime.RuntimeOptionsFactory.buildArgsFromOptions(RuntimeOptionsFactory.java:38)
at cucumber.runtime.RuntimeOptionsFactory.create(RuntimeOptionsFactory.java:22)
at cucumber.api.junit.Cucumber.<init>(Cucumber.java:84)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:104)
at org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:86)
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:26)
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:33)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:49)
at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
@viveksr80 viveksr80 changed the title Existing cucumber tests will not work after after adding Karate dependencies Existing cucumber tests will not work after adding Karate dependencies Jul 29, 2019
@viveksr80 viveksr80 changed the title Existing cucumber tests will not work after adding Karate dependencies Existing cucumber tests will not work after adding Karate dependencies (0.9.4) bug Jul 29, 2019
@ptrthomas
Copy link
Member

@viveksr80 yes this is expected: #444 (comment) - see if using the @KarateOptions instead of @CucumberOptions annotation solves this. else this is a won't fix unless we get community contributions.

@ptrthomas
Copy link
Member

@viveksr80 that said - if you follow this process, it increases the chances that one of the devs will look at it: https://github.com/intuit/karate/wiki/How-to-Submit-an-Issue

@viveksr80
Copy link
Author

@viveksr80 yes this is expected: #444 (comment) - see if using the @KarateOptions instead of @CucumberOptions annotation solves this. else this is a won't fix unless we get community contributions.

ok Thomas, will check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants