fix surefix config
This commit is contained in:
parent
43e81c921c
commit
6846e37d88
25
pom.xml
25
pom.xml
@ -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>
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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 {
|
||||||
|
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
cucumber.publish.enabled=true
|
cucumber.publish.enabled=false
|
||||||
cucumber.publish.quiet=true
|
cucumber.publish.quiet=true
|
@ -1,2 +1,2 @@
|
|||||||
cucumber.publish.enabled=true
|
cucumber.publish.enabled=false
|
||||||
cucumber.publish.quiet=true
|
cucumber.publish.quiet=true
|
Loading…
Reference in New Issue
Block a user