]> source.dussan.org Git - sonarqube.git/commitdiff
BUILD-857 Cleanup Jest Junit report before processing
authorMalena Ebert <63863184+malena-ebert-sonarsource@users.noreply.github.com>
Wed, 10 Mar 2021 11:37:14 +0000 (12:37 +0100)
committersonartech <sonartech@sonarsource.com>
Sat, 27 Mar 2021 20:04:06 +0000 (20:04 +0000)
.cirrus.yml

index 3f32ac8757acd39510b16620b385d65d183af8ea..dd3adb9c84455986a0bc72ca1bba28331a7c65ab 100644 (file)
@@ -71,10 +71,13 @@ postgres_additional_container_template: &POSTGRES_ADDITIONAL_CONTAINER_TEMPLATE
     POSTGRES_PASSWORD: postgres
 
 reports_junit_on_failure_template: &REPORTS_JUNIT_ON_FAILURE_TEMPLATE
+  jest_junit_cleanup_script: >
+    find . -type f -wholename "**/build/test-results/test-jest/junit.xml" -exec
+    xmlstarlet edit --inplace --delete '//testsuite[@errors=0 and @failures=0]' {} \;
   reports_artifacts:
     path: "**/build/reports/**/*"
   junit_artifacts:
-    path: "**/test-results/**/*.xml"
+    path: "**/build/test-results/**/*.xml"
     format: junit
 
 screenshots_on_failure_template: &REPORTS_JUNIT_SCREENSHOTS_ON_FAILURE_TEMPLATE