I set Cucumber options into my cucumber project below:
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]
Need to repeat the plugin option. Try this
--plugin json:report/cucumber.json --plugin junit:target/junitreports.xml
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With