Ajout des rapports de tests unitaires dans Gitlab-CI

This commit is contained in:
FyloZ 2021-02-14 01:06:52 -05:00
parent 61c2f63878
commit 5a05d87917
2 changed files with 9 additions and 0 deletions

View File

@ -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

View File

@ -66,6 +66,11 @@ sourceSets {
}
tasks.test {
reports {
junitXml.isEnabled = true
html.isEnabled = false
}
useJUnitPlatform()
testLogging {
events("passed", "skipped", "failed")