email2vimalraj / CucumberExtentReporter

A plugin to generate the cucumber jvm custom html report using ExtentsReport
http://www.vimalselvam.com/cucumber-extent-reporter/
MIT License
58 stars 74 forks source link

ExtentCucumberFormatter is not taking in account in a JAVA Runner (but Works in a JUnit runner) #78

Open rwralitera opened 6 years ago

rwralitera commented 6 years ago

Hi,

I tried to use this formater in a java runner like this: public class Run { public static void main(String[] args) throws Throwable { final String[] cucumberArgs = { "-g", "com.cucumber.steps", "-p", "pretty", "-p", "html:target/cucumber", "-p", "com.cucumber.listener.ExtentCucumberFormatter:", "classpath:com/cucumber/features", "--tags", "@TestNewfunction" }; Main.main(cucumberArgs); } }

The run is not starting at all. Can you help me please. NB: At the end, I would use it like this in a command line: "%JAVA_HOME%\bin\java" -jar "%NAME_JAR%" --glue com.cucumber.steps --monochrome --plugin com.cucumber.listener.ExtentCucumberFormatter: --tags @TestNewfunction %FeatureFolder%