diff --git a/pom.xml b/pom.xml index 8949e264..89fa27b3 100644 --- a/pom.xml +++ b/pom.xml @@ -11,7 +11,7 @@ UTF-8 - 4.0.8 + 4.0.12 UTF-8 @@ -169,13 +169,6 @@ - - - net.serenity-bdd - serenity-core - ${serenity.version} - - diff --git a/src/test/java/net/serenitybdd/demos/todos/cucumber/CucumberTestSuite.java b/src/test/java/net/serenitybdd/demos/todos/cucumber/CucumberTestSuite.java index 74e1ad4a..f2cc0d6d 100644 --- a/src/test/java/net/serenitybdd/demos/todos/cucumber/CucumberTestSuite.java +++ b/src/test/java/net/serenitybdd/demos/todos/cucumber/CucumberTestSuite.java @@ -3,9 +3,13 @@ import org.junit.platform.suite.api.IncludeEngines; import org.junit.platform.suite.api.SelectClasspathResource; import org.junit.platform.suite.api.Suite; +import org.junit.platform.suite.api.ConfigurationParameter; + +import static io.cucumber.junit.platform.engine.Constants.PLUGIN_PROPERTY_NAME; @Suite @IncludeEngines("cucumber") @SelectClasspathResource("/features") +@ConfigurationParameter(key = PLUGIN_PROPERTY_NAME, value = "io.cucumber.core.plugin.SerenityReporterParallel") public class CucumberTestSuite { } diff --git a/src/test/java/net/serenitybdd/demos/todos/cucumber/steps/TodoUserSteps.java b/src/test/java/net/serenitybdd/demos/todos/cucumber/steps/TodoUserSteps.java index 5a0b9e22..c87353f0 100644 --- a/src/test/java/net/serenitybdd/demos/todos/cucumber/steps/TodoUserSteps.java +++ b/src/test/java/net/serenitybdd/demos/todos/cucumber/steps/TodoUserSteps.java @@ -3,6 +3,7 @@ import com.google.common.base.Splitter; import io.cucumber.java.Before; +import io.cucumber.java.BeforeAll; import io.cucumber.java.ParameterType; import io.cucumber.java.en.Given; import io.cucumber.java.en.Then; @@ -13,6 +14,7 @@ import net.serenitybdd.demos.todos.screenplay.model.TodoStatusFilter; import net.serenitybdd.demos.todos.screenplay.questions.TheItems; import net.serenitybdd.demos.todos.screenplay.tasks.*; +import net.serenitybdd.model.buildinfo.BuildInfo; import net.serenitybdd.screenplay.Actor; import net.serenitybdd.screenplay.actors.OnStage; import net.serenitybdd.screenplay.actors.OnlineCast; @@ -28,6 +30,15 @@ public class TodoUserSteps { + @BeforeAll + public static void recordToggles() { + BuildInfo.section("Toggles").setProperty("toggle1", "on"); + BuildInfo.section("Toggles").setProperty("toggle2", "on"); + + BuildInfo.section("Versions").setProperty("service 1", "1.2.3"); + BuildInfo.section("Versions").setProperty("service 2", "1.2.4"); + } + @Before public void set_the_stage() { setTheStage(new OnlineCast()); diff --git a/src/test/resources/junit-platform.properties b/src/test/resources/junit-platform.properties index d0503d80..991ff266 100644 --- a/src/test/resources/junit-platform.properties +++ b/src/test/resources/junit-platform.properties @@ -1,11 +1,10 @@ # JUnit parallel execution -junit.jupiter.execution.parallel.enabled=true -junit.jupiter.execution.parallel.config.strategy=dynamic -junit.jupiter.execution.parallel.mode.default = concurrent -junit.jupiter.execution.parallel.mode.classes.default = concurrent +#junit.jupiter.execution.parallel.enabled=true +#junit.jupiter.execution.parallel.config.strategy=dynamic +#junit.jupiter.execution.parallel.mode.default = concurrent +#junit.jupiter.execution.parallel.mode.classes.default = concurrent # Cucumber parallel execution -cucumber.execution.parallel.enabled=true -cucumber.execution.parallel.config.strategy=dynamic -cucumber.plugin=io.cucumber.core.plugin.SerenityReporterParallel +#cucumber.execution.parallel.enabled=true +#cucumber.execution.parallel.config.strategy=dynamic diff --git a/src/test/resources/serenity.conf b/src/test/resources/serenity.conf index e1134677..c0103dd5 100644 --- a/src/test/resources/serenity.conf +++ b/src/test/resources/serenity.conf @@ -21,6 +21,14 @@ serenity { linked.tags = "issue" restart.browser.for.each = scenario logging = verbose + # + # Use these options to reduce the size of the reports + # + # Report on test durations + report.test.durations = true + # Store HTML source for each page + # (can be: ALWAYS, FAILURES or NEVER) +// store.html = FAILURES } environment = prod