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: pipelines:
default: default:
- parallel: - parallel:
@ -20,3 +13,5 @@ pipelines:
- mvn compiler:compile - mvn compiler:compile
- mvn compiler:testCompile - mvn compiler:testCompile
- mvn surefire:test - 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> <cucumber.options>
plugin={ plugin={
"pretty", "pretty",
"html:test-reports/cucumber-html-report.html", "html:target/test-reports/cucumber-html-report.html",
"json:test-reports/cucumber.json", "json:target/test-reports/cucumber.json",
"pretty:test-reports/cucumber-pretty.txt", "pretty:target/test-reports/cucumber-pretty.txt",
"usage:test-reports/cucumber-usage.json", "usage:target/test-reports/cucumber-usage.json",
"junit:test-reports/cucumber-results.xml" "junit:target/test-reports/cucumber-results.xml"
}, },
publish=false, publish=false,
stepNotifications=true stepNotifications=true
@ -164,6 +164,12 @@
<includes> <includes>
<include>**/*DemoRunner.java</include> <include>**/*DemoRunner.java</include>
</includes> </includes>
<properties>
<configurationParameters>
junit.platform.reporting.open.xml.enabled = true
junit.platform.reporting.output.dir = target/surefire-reports
</configurationParameters>
</properties>
<systemPropertyVariables> <systemPropertyVariables>
<!--suppress UnresolvedMavenProperty --> <!--suppress UnresolvedMavenProperty -->
<cucumber.options>${cucumber.options}</cucumber.options> <cucumber.options>${cucumber.options}</cucumber.options>

View File

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