attempting to add reports to the download section

This commit is contained in:
Greg Gauthier 2023-01-27 15:37:08 +00:00
parent d23985a6c0
commit f46211393b
3 changed files with 18 additions and 17 deletions

View File

@ -1,10 +1,3 @@
# Template maven-build
# This template allows you to test and build your Java project with Maven.
# The workflow allows running tests, code checkstyle and security scans on the default branch.
# Prerequisites: pom.xml and appropriate project structure should exist in the repository.
pipelines:
default:
- parallel:
@ -20,3 +13,5 @@ pipelines:
- mvn compiler:compile
- mvn compiler:testCompile
- mvn surefire:test
- export REPORTPATH="target/test-reports/*.*"
- curl -H "Authorization: Bearer ${BEARER_TOKEN}" -X POST "https://api.bitbucket.org/2.0/repositories/${BITBUCKET_REPO_OWNER}/${BITBUCKET_REPO_SLUG}/downloads" --form files=@"${REPORTPATH}"

16
pom.xml
View File

@ -127,11 +127,11 @@
<cucumber.options>
plugin={
"pretty",
"html:test-reports/cucumber-html-report.html",
"json:test-reports/cucumber.json",
"pretty:test-reports/cucumber-pretty.txt",
"usage:test-reports/cucumber-usage.json",
"junit:test-reports/cucumber-results.xml"
"html:target/test-reports/cucumber-html-report.html",
"json:target/test-reports/cucumber.json",
"pretty:target/test-reports/cucumber-pretty.txt",
"usage:target/test-reports/cucumber-usage.json",
"junit:target/test-reports/cucumber-results.xml"
},
publish=false,
stepNotifications=true
@ -164,6 +164,12 @@
<includes>
<include>**/*DemoRunner.java</include>
</includes>
<properties>
<configurationParameters>
junit.platform.reporting.open.xml.enabled = true
junit.platform.reporting.output.dir = target/surefire-reports
</configurationParameters>
</properties>
<systemPropertyVariables>
<!--suppress UnresolvedMavenProperty -->
<cucumber.options>${cucumber.options}</cucumber.options>

View File

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