Closed BhushanJoshi93 closed 1 year ago
Found the issue and it is now working as expected :
For all others: FYI : https://serenity-bdd.github.io/docs/guide/cucumber
Document mentions
cucumber.execution.parallel.enabled=true cucumber.execution.parallel.config.strategy=fixed cucumber.execution.parallel.config.fixed.parallelism=10 cucumber.plugin=io.cucumber.core.plugin.SerenityReporterParallel
However, SerenityReporterParallel will not be found under io.cucumber.core.plugin So use cucumber.plugin=io.cucumber.core.plugin.SerenityReporter
In my case:
cucumber.publish.quiet=true
cucumber.execution.parallel.enabled=true
cucumber.execution.execution-mode.feature = same_thread
cucumber.publish.enabled=true
cucumber.execution.parallel.config.strategy=fixed
cucumber.execution.parallel.config.fixed.parallelism=10
cucumber.plugin=io.cucumber.core.plugin.SerenityReporter,pretty, json:path/to/report.json
Hi I'm running the serenity-cucumber-starter. I'm running into issue where the report is not getting generated even after using the same pom file that the starter has (plus I have added few extra things for parallel execution). Forgot to mention: The report gets updated but its empty. Meaning, I can see new date on the report. But it has no test. Below is the screenshot:![image](https://user-images.githubusercontent.com/41268514/214060865-8e4b53e8-c635-403e-b87d-639b9db8272a.png)
And here's the results from Console:![image](https://user-images.githubusercontent.com/41268514/214061031-40889b38-a06c-4cd9-85af-f4dd052fcf18.png)
Below is the pom file
`<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
`
and Here's the runner file `package testRunner;
import io.cucumber.junit.CucumberOptions; import net.serenitybdd.cucumber.CucumberWithSerenity; import net.serenitybdd.junit5.SerenityJUnit5Extension;
import org.junit.jupiter.api.extension.ExtendWith; import org.junit.platform.suite.api.ConfigurationParameter; import org.junit.platform.suite.api.IncludeEngines; import org.junit.platform.suite.api.SelectClasspathResource; import org.junit.platform.suite.api.Suite; import org.junit.runner.RunWith; import static io.cucumber.junit.platform.engine.Constants.GLUE_PROPERTY_NAME; import static io.cucumber.junit.platform.engine.Constants.PLUGIN_PROPERTY_NAME;;
//@RunWith(CucumberWithSerenity.class) @Suite @ExtendWith(SerenityJUnit5Extension.class) @IncludeEngines("cucumber") @ConfigurationParameter(key=PLUGIN_PROPERTY_NAME , value = "pretty") @SelectClasspathResource("features/") @ConfigurationParameter(key=GLUE_PROPERTY_NAME , value = "stepdefinitions")
//@CucumberOptions( // plugin = {"pretty"}, // features = "src/test/resources/features" //)
public class CucumberJunit5Runner {}`
Here's the junit-platform.properties cucumber.publish.quiet=true cucumber.execution.parallel.enabled=true cucumber.execution.execution-mode.feature = same_thread cucumber.publish.enabled=true