Skip to content

Commit

Permalink
Update Cucumber examples
Browse files Browse the repository at this point in the history
  • Loading branch information
HardNorth committed Nov 8, 2024
1 parent 023cd1f commit 72155de
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 2 deletions.
45 changes: 44 additions & 1 deletion example-cucumber6/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
<selenium.version>4.17.0</selenium.version>
</properties>


<dependencies>
<dependency>
<groupId>com.epam.reportportal</groupId>
Expand Down Expand Up @@ -79,4 +78,48 @@
<scope>test</scope>
</dependency>
</dependencies>

<profiles>
<profile>
<id>basic</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<includes>
<include>**/BasicRunTest.class</include>
</includes>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>rerun</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<includes>
<include>**/BasicReRunTest.class</include>
</includes>
<environmentVariables>
<RP_RERUN>true</RP_RERUN>
<RP_EXPECTED_TITLE>Example Domain</RP_EXPECTED_TITLE>
</environmentVariables>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.epam.reportportal.example.cucumber6;

import io.cucumber.junit.Cucumber;
import io.cucumber.junit.CucumberOptions;
import org.junit.runner.RunWith;

@RunWith(Cucumber.class)
@CucumberOptions(
plugin = { "pretty", "html:report.html", "com.epam.reportportal.example.cucumber6.attributes.KeyValueAttributeReporter" },
features = "@rerun.txt",
glue = "com.epam.reportportal.example.cucumber6.glue")
public class BasicReRunTest {
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

@RunWith(Cucumber.class)
@CucumberOptions(
plugin = { "pretty", "html:report.html", "com.epam.reportportal.example.cucumber6.attributes.KeyValueAttributeReporter" },
plugin = { "pretty", "html:report.html", "com.epam.reportportal.example.cucumber6.attributes.KeyValueAttributeReporter",
"rerun:rerun.txt" },
features = "src/test/resources/features",
tags = "not @ignore",
glue = "com.epam.reportportal.example.cucumber6.glue")
Expand Down

0 comments on commit 72155de

Please sign in to comment.