report generation for pipeline

This commit is contained in:
Greg Gauthier 2023-01-27 13:51:59 +00:00
parent ded1db8f80
commit 6b9c72321b
2 changed files with 34 additions and 7 deletions

31
pom.xml
View File

@ -120,6 +120,29 @@
</dependencies>
<profiles>
<profile>
<id>test</id>
<properties>
<cucumber.options>
plugin={
"pretty",
"html:target/reports/cucumber-html-report.html",
"json:target/reports/cucumber.json",
"pretty:target/reports/cucumber-pretty.txt",
"usage:target/reports/cucumber-usage.json",
"junit:target/reports/cucumber-results.xml"
},
publish=false,
stepNotifications=true
</cucumber.options>
<cucumber.publish.quiet>
cucumber.publish.quiet=true
</cucumber.publish.quiet>
</properties>
</profile>
</profiles>
<build>
<plugins>
<plugin>
@ -137,12 +160,16 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M7</version>
<configuration>
<!-- <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> -->
<systemPropertyVariables>
<!--suppress UnresolvedMavenProperty -->
<cucumber.options>${cucumber.options}</cucumber.options>
<!--suppress UnresolvedMavenProperty -->
<cucumber.publish.quiet>${cucumber.publish.quiet}</cucumber.publish.quiet>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>

View File

@ -10,11 +10,11 @@ import org.junit.runner.RunWith;
glue = {"org.example.webtests.steps"},
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"
"html:target/reports/cucumber-html-report.html",
"json:target/reports/cucumber.json",
"pretty:target/reports/cucumber-pretty.txt",
"usage:target/reports/cucumber-usage.json",
"junit:target/reports/cucumber-results.xml"
},
publish = false,
stepNotifications = true