Skip to content

Commit

Permalink
Updated sample version
Browse files Browse the repository at this point in the history
  • Loading branch information
wakaleo committed Sep 18, 2023
1 parent af82032 commit 89fba0a
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 15 deletions.
9 changes: 1 addition & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<serenity.version>4.0.8</serenity.version>
<serenity.version>4.0.12</serenity.version>
<encoding>UTF-8</encoding>
<serenity.test.root></serenity.test.root>
<tags></tags>
Expand Down Expand Up @@ -169,13 +169,6 @@
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>net.serenity-bdd</groupId>
<artifactId>serenity-core</artifactId>
<version>${serenity.version}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -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());
Expand Down
13 changes: 6 additions & 7 deletions src/test/resources/junit-platform.properties
Original file line number Diff line number Diff line change
@@ -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

8 changes: 8 additions & 0 deletions src/test/resources/serenity.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 89fba0a

Please sign in to comment.