From bd4eb88ece66e32aaa22861c5eddc40a5dc4e9c5 Mon Sep 17 00:00:00 2001 From: Malena Ebert <63863184+malena-ebert-sonarsource@users.noreply.github.com> Date: Wed, 10 Mar 2021 12:37:14 +0100 Subject: [PATCH] BUILD-857 Cleanup Jest Junit report before processing --- .cirrus.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.cirrus.yml b/.cirrus.yml index 3f32ac8757a..dd3adb9c844 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -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 -- 2.39.5