Ajout des rapports de tests unitaires dans Gitlab-CI
This commit is contained in:
parent
61c2f63878
commit
5a05d87917
|
@ -26,6 +26,10 @@ test:
|
|||
TEST_CONTAINER_NAME: "cre_backend_gradle_tests-$CI_COMMIT_REF_NAME"
|
||||
script:
|
||||
- docker run --name $TEST_CONTAINER_NAME --rm $CI_REGISTRY_IMAGE_GRADLE gradle test
|
||||
artifacts:
|
||||
when: always
|
||||
reports:
|
||||
junit: build/test-results/test/**/TEST-*.xml
|
||||
|
||||
package:
|
||||
stage: package
|
||||
|
|
|
@ -66,6 +66,11 @@ sourceSets {
|
|||
}
|
||||
|
||||
tasks.test {
|
||||
reports {
|
||||
junitXml.isEnabled = true
|
||||
html.isEnabled = false
|
||||
}
|
||||
|
||||
useJUnitPlatform()
|
||||
testLogging {
|
||||
events("passed", "skipped", "failed")
|
||||
|
|
Loading…
Reference in New Issue