runtime exception when running a cucumber tests with annotation containing multiple tags
See original GitHub issue@when Trying to run my cucumber test with multiple tags in @cucumber.options annotation, like…
@RunWith(Cucumber.class)
@Cucumber.Options(tags = {"@reg","@temp"})
@then I am getting the below exception. But test running fine when run with any single tag like-> tags = {“@reg”}
cucumber.runtime.CucumberException: None of the features at [classpath:] matched the filters: [@reg, @temp] at cucumber.runtime.model.CucumberFeature.load(CucumberFeature.java:45) at cucumber.runtime.RuntimeOptions.cucumberFeatures(RuntimeOptions.java:98) at cucumber.junit.Cucumber.<init>(Cucumber.java:61) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:525) at org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:31) at org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:24) at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57) at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:29) at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57) at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:24) at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:43) at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:195) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:63) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
Thanks, Phani Kaliginadi
Issue Analytics
- State:
- Created 11 years ago
- Comments:10 (4 by maintainers)
Top GitHub Comments
Do this:
See https://github.com/cucumber/cucumber/wiki/Tags
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.