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:
|
.maven-test:
|
||||||
image: $MAVEN_IMAGE
|
image: $MAVEN_IMAGE
|
||||||
stage: test
|
stage: test
|
||||||
allow_failure: true
|
|
||||||
script:
|
script:
|
||||||
- mvn $MAVEN_CLI_OPTS verify
|
- mvn $MAVEN_CLI_OPTS verify
|
||||||
artifacts:
|
artifacts:
|
||||||
@ -10,3 +9,25 @@
|
|||||||
junit:
|
junit:
|
||||||
- target/surefire-reports/TEST-*.xml
|
- target/surefire-reports/TEST-*.xml
|
||||||
- target/failsafe-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