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> </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> <build>
<plugins> <plugins>
<plugin> <plugin>
@ -152,10 +137,12 @@
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M7</version> <version>3.0.0-M7</version>
<configuration> <configuration>
<systemPropertyVariables> <!-- <testClassesDirectory>s360UIAutomationCC/src/main/java</testClassesDirectory> -->
<!--suppress UnresolvedMavenProperty --> <testSourceDirectory>src/test/java/org/example/webtests</testSourceDirectory>
<cucumber.filter.tags>${cucumber.filter.tags}</cucumber.filter.tags> <includes>
</systemPropertyVariables> <include>**/*DemoRunner.java</include>
</includes>
<!-- <excludes> <exclude>**/*RunCukesTest.java</exclude> </excludes> -->
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>

View File

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

View File

@ -8,8 +8,16 @@ import org.junit.runner.RunWith;
@CucumberOptions( @CucumberOptions(
features = "src/test/java/org/example/webtests/features/", features = "src/test/java/org/example/webtests/features/",
glue = {"org.example.webtests.steps"}, glue = {"org.example.webtests.steps"},
plugin = {"pretty"}, plugin = {
publish = true "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 { public class DemoRunner {

View File

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

View File

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