We are having an issue running BDD tests in IntelliJ Idea using JUnit. Our project is using the following serenity dependencies:
serenity-core (1.2.4)
serenity-junit (1.2.4)
serenity-rest-assured (1.2.4)
serenity-cucumber (1.1.29)
A test will run and the given/when/then steps successfully execute, but the test fails at "Class Configuration" with the following error:
java.lang.NoClassDefFoundError: net/thucydides/core/statistics/service/InjectedTagProvider
at net.serenitybdd.cucumber.service.CucumberTagProviderStrategy.getTagProviders(CucumberTagProviderStrategy.java:34)
at net.thucydides.core.statistics.service.ClasspathTagProviderService.tagProvidersThatCanProcess(ClasspathTagProviderService.java:63)
at net.thucydides.core.statistics.service.ClasspathTagProviderService.loadTagProvidersFromPath(ClasspathTagProviderService.java:39)
at net.thucydides.core.statistics.service.ClasspathTagProviderService.getTagProviders(ClasspathTagProviderService.java:23)
at net.thucydides.core.model.TestOutcome.getTags(TestOutcome.java:1618)
at net.thucydides.core.model.TestOutcome.addTags(TestOutcome.java:1663)
at net.thucydides.core.steps.BaseStepListener.testFinished(BaseStepListener.java:434)
at net.thucydides.core.steps.StepEventBus.testFinished(StepEventBus.java:256)
at net.serenitybdd.cucumber.SerenityReporter.result(SerenityReporter.java:603)
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 cucumber.runtime.Utils$1.call(Utils.java:40)
at cucumber.runtime.Timeout.timeout(Timeout.java:16)
at cucumber.runtime.Utils.invoke(Utils.java:34)
at cucumber.runtime.RuntimeOptions$1.invoke(RuntimeOptions.java:294)
at com.sun.proxy.$Proxy19.result(Unknown Source)
at cucumber.runtime.junit.JUnitReporter.result(JUnitReporter.java:121)
at cucumber.runtime.Runtime.runStep(Runtime.java:310)
at cucumber.runtime.model.StepContainer.runStep(StepContainer.java:44)
at cucumber.runtime.model.StepContainer.runSteps(StepContainer.java:39)
at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:44)
at cucumber.runtime.junit.ExecutionUnitRunner.run(ExecutionUnitRunner.java:102)
at org.junit.runners.Suite.runChild(Suite.java:128)
at org.junit.runners.Suite.runChild(Suite.java:27)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at cucumber.runtime.junit.ExamplesRunner.run(ExamplesRunner.java:59)
at org.junit.runners.Suite.runChild(Suite.java:128)
at org.junit.runners.Suite.runChild(Suite.java:27)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at cucumber.runtime.junit.ScenarioOutlineRunner.run(ScenarioOutlineRunner.java:53)
at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:63)
at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:18)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at cucumber.runtime.junit.FeatureRunner.run(FeatureRunner.java:70)
at cucumber.api.junit.Cucumber.runChild(Cucumber.java:95)
at cucumber.api.junit.Cucumber.runChild(Cucumber.java:38)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at cucumber.api.junit.Cucumber.run(Cucumber.java:100)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:51)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:237)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
0 Scenarios ()
4 Steps (4 passed)
0m4.654s
I have looked in all my relevant jar files, and cannot find the class InjectedTagProvider. The only reference I can find to this class is in the class CucumberTagProviderStrategy. Google searches on InjectedTagProvider results in only one match - a link to CucumberTagProviderStrategy.java.
Where can I find a dependency that actually has this class, or do we need different dependencies?
Any help you can provide would be appreciated.
Thanks!
We are having an issue running BDD tests in IntelliJ Idea using JUnit. Our project is using the following serenity dependencies:
A test will run and the given/when/then steps successfully execute, but the test fails at "Class Configuration" with the following error: java.lang.NoClassDefFoundError: net/thucydides/core/statistics/service/InjectedTagProvider
0 Scenarios () 4 Steps (4 passed) 0m4.654s
I have looked in all my relevant jar files, and cannot find the class InjectedTagProvider. The only reference I can find to this class is in the class CucumberTagProviderStrategy. Google searches on InjectedTagProvider results in only one match - a link to CucumberTagProviderStrategy.java.
Where can I find a dependency that actually has this class, or do we need different dependencies? Any help you can provide would be appreciated. Thanks!