Unable to generate the report with junit 5 and cucumber platform engine
Only use platform engine @Cucumber
Generate a report at the end of the test.
The json file is needed to complete my dashboard.
windows 10
eclipse
Have you configured the appropriate plugin through src/test/resources/junit-platform.properties ? When I have such a file containing:
cucumber.plugin=pretty,json:target/cucumber/report.json
And I run my tests through something like:
package my.company.cucumber;
@io.cucumber.junit.platform.engine.Cucumber
public class RunCucumberIT {
// Allow Maven failsafe to discover Cucumber tests
}
Then I get pretty output on stdout, and json output in target/cucumber/report.json.
The relevant documentation for all of this is here. Does any of that help?
If not then we definitely need more information on what you are and aren't using to run your tests.
Please feel free to reopen with more information.
Most helpful comment
Have you configured the appropriate plugin through
src/test/resources/junit-platform.properties? When I have such a file containing:And I run my tests through something like:
Then I get pretty output on stdout, and json output in
target/cucumber/report.json.The relevant documentation for all of this is here. Does any of that help?
If not then we definitely need more information on what you are and aren't using to run your tests.