Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set multiple plugins for Cucumber Options from terminal of cucumber?

I set Cucumber options into my cucumber project below: enter image description here

And I run test by mvn command line with -Dcucumber.options to override options of my prject:

mvn -f "pom.xml" -Dcucumber.options="--plugin json:report/cucumber.json,junit:target/junitreports.xml --tags @Login" test

But is show error:

Data provider mismatch
Method: runScenario([Parameter{index=0, type=cucumber.api.testng.PickleEventWrapper, declaredAnnotations=[]}, Parameter{index=1, type=cucumber.api.testng.CucumberFeatureWrapper, declaredAnnotations=[]}])
Arguments: [(cucumber.api.testng.CucumberExceptionWrapper)cucumber.api.testng.CucumberExceptionWrapper@a0bf272]
like image 217
Tam Vo Avatar asked Mar 06 '23 19:03

Tam Vo


1 Answers

Need to repeat the plugin option. Try this

--plugin json:report/cucumber.json --plugin junit:target/junitreports.xml
like image 68
Grasshopper Avatar answered May 03 '23 11:05

Grasshopper