I am getting an error on '@Cucumber.Options' | Selenium Forum
M
Posted on 29/09/2016
Hi Ashish,

I am getting an error on '@Cucumber.Options'.

It says to fix the project setup. I have added all the relevant jar files and tried changing the Jre versions but nothing seems to be working here.

[code:xialfal2]import org.junit.runner.RunWith;

import cucumber.api.junit.Cucumber;


// runner class
//It should be present in the same package as that of test cases
//To run all the test cases, run this runner file

@RunWith(Cucumber.class)
//To get reports, add the following code, here 'output' is the name of the folder under which index.html file will get created having reports
@Cucumber.Options(format={"html:output"})

/*@CucumberOptions(plugin = { "html:target/cucumber-html-report",
"json:target/cucumber.json", "pretty:target/cucumber-pretty.txt",
"usage:target/cucumber-usage.json", "junit:target/cucumber-results.xml" },
features = { "./src/test/java/com/github/mkolisnyk/cucumber/features" },
glue = { "com/github/mkolisnyk/cucumber/steps" })
*/
public class Runner {





}
[/code:xialfal2]

M
Replied on 30/09/2016

use this

http://stackoverflow.com/questions/9663117/how-do-i-set-the-path-to-my-cucumber-features-using-cucumber-junit