fix surefix config
This commit is contained in:
parent
43e81c921c
commit
6846e37d88
25
pom.xml
25
pom.xml
@ -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>
|
||||
|
@ -1,5 +1,5 @@
|
||||
# Sample Cucumber test using the SWAGLABS site
|
||||
|
||||
@login_feature
|
||||
Feature: Login
|
||||
Description: Demonstration of cucumber with Junit, and Playwright
|
||||
|
||||
|
@ -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 {
|
||||
|
||||
|
@ -1,2 +1,2 @@
|
||||
cucumber.publish.enabled=true
|
||||
cucumber.publish.enabled=false
|
||||
cucumber.publish.quiet=true
|
@ -1,2 +1,2 @@
|
||||
cucumber.publish.enabled=true
|
||||
cucumber.publish.enabled=false
|
||||
cucumber.publish.quiet=true
|
Loading…
Reference in New Issue
Block a user