feat(Maven Test): Add Unit Test and Integration Test Template
This commit is contained in:
parent
70f0f24b5d
commit
e254de144b
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user