I have tried to create a folder named HtmlReports
under using cucumber pretty. When I ran the Runner Class it has created a HtmlReports
file instead of creating a folder.
This is my Code.
package Stepdefinition;
import org.junit.runner.RunWith;
import io.cucumber.junit.CucumberOptions;
import io.cucumber.junit.Cucumber;
@RunWith(Cucumber.class)
@CucumberOptions(features="src/test/resources/Features",
monochrome = true,
plugin={"pretty","html:target/HtmlReports"}
)
public class Testrunner {
}
Can someone please help me on this?
With Cucumber v6 the html formatter was improved somewhat. It now outputs a single page html report. You can open it by adding the .html
extension.
@CucumberOptions(plugin = "html:target/cucumber-report.html")