fix surefix config

This commit is contained in:
Greg Gauthier 2023-01-27 12:47:29 +00:00
parent 43e81c921c
commit 6846e37d88
5 changed files with 19 additions and 24 deletions

25
pom.xml
View File

@ -120,21 +120,6 @@
</dependencies>
<profiles>
<profile>
<id>dev</id>
<properties>
<cucumber.filter.tags>@dev</cucumber.filter.tags>
</properties>
</profile>
<profile>
<id>qa</id>
<properties>
<cucumber.filter.tags>@qa</cucumber.filter.tags>
</properties>
</profile>
</profiles>
<build>
<plugins>
<plugin>
@ -152,10 +137,12 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M7</version>
<configuration>
<systemPropertyVariables>
<!--suppress UnresolvedMavenProperty -->
<cucumber.filter.tags>${cucumber.filter.tags}</cucumber.filter.tags>
</systemPropertyVariables>
<!-- <testClassesDirectory>s360UIAutomationCC/src/main/java</testClassesDirectory> -->
<testSourceDirectory>src/test/java/org/example/webtests</testSourceDirectory>
<includes>
<include>**/*DemoRunner.java</include>
</includes>
<!-- <excludes> <exclude>**/*RunCukesTest.java</exclude> </excludes> -->
</configuration>
</plugin>
</plugins>

View File

@ -1,5 +1,5 @@
# Sample Cucumber test using the SWAGLABS site
@login_feature
Feature: Login
Description: Demonstration of cucumber with Junit, and Playwright

View File

@ -8,8 +8,16 @@ import org.junit.runner.RunWith;
@CucumberOptions(
features = "src/test/java/org/example/webtests/features/",
glue = {"org.example.webtests.steps"},
plugin = {"pretty"},
publish = true
plugin = {
"pretty",
"html:target/cucumber-html-report",
"json:target/cucumber.json",
"pretty:target/cucumber-pretty.txt",
"usage:target/cucumber-usage.json",
"junit:target/cucumber-results.xml"
},
publish = false,
stepNotifications = true
)
public class DemoRunner {

View File

@ -1,2 +1,2 @@
cucumber.publish.enabled=true
cucumber.publish.enabled=false
cucumber.publish.quiet=true

View File

@ -1,2 +1,2 @@
cucumber.publish.enabled=true
cucumber.publish.enabled=false
cucumber.publish.quiet=true