eclipse - Latest version of cucumber-java and cucumber-junit does not work -
i using cucumber-jvm , selenium webdriver together. have maven project in eclipse , dependency of pom.xml file below:
<dependency> <groupid>info.cukes</groupid> <artifactid>cucumber-java</artifactid> <version>1.2.2</version> <scope>test</scope> </dependency> <dependency> <groupid>info.cukes</groupid> <artifactid>cucumber-junit</artifactid> <version>1.2.2</version> <scope>test</scope> </dependency> the content of runcukestest.java file is:
import org.junit.runner.runwith; import cucumber.junit.cucumber; @runwith(cucumber.class) @cucumber.options(format = {"pretty", "html:target/cucumber-htmlreport","json-pretty:target/cucumber-report.json"}) public class runcukestest { } i getting error in following lines of code:
import cucumber.junit.cucumber; @runwith(cucumber.class) @cucumber.options(format = {"pretty", "html:target/cucumber-htmlreport","json-pretty:target/cucumber-report.json"}) but when used version 1.0.14 works well. what's wrong latest version?
@cucumber.options deprecated use @cucumberoptions instead
@cucumberoptions( format = "pretty", features = "//refer feature file" ) hope helps you
Comments
Post a Comment