feat(Maven Test): Add Unit Test and Integration Test Template

This commit is contained in:
Marcel Feix 2021-07-19 11:12:56 +00:00
parent 70f0f24b5d
commit e254de144b

View File

@ -1,7 +1,6 @@
.maven-test:
image: $MAVEN_IMAGE
stage: test
allow_failure: true
script:
- mvn $MAVEN_CLI_OPTS verify
artifacts:
@ -10,3 +9,25 @@
junit:
- target/surefire-reports/TEST-*.xml
- target/failsafe-reports/TEST-*.xml
.maven-unit-test:
image: $MAVEN_IMAGE
stage: test
script:
- mvn $MAVEN_CLI_OPTS surefire:test
artifacts:
expire_in: 2 weeks
reports:
junit:
- target/surefire-reports/TEST-*.xml
.maven-integration-test:
image: $MAVEN_IMAGE
stage: test
script:
- mvn $MAVEN_CLI_OPTS failsafe:integration-test
artifacts:
expire_in: 2 weeks
reports:
junit:
- target/failsafe-reports/TEST-*.xml