From bb3a281a2bddd63cb046d8b4187caec374c7ec00 Mon Sep 17 00:00:00 2001 From: Christine Lytwynec Date: Thu, 30 Jul 2015 09:30:25 -0400 Subject: [PATCH] generate diff-coverage report in JS jenkins build --- scripts/all-tests.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/all-tests.sh b/scripts/all-tests.sh index 89daacd203..843663b9e7 100755 --- a/scripts/all-tests.sh +++ b/scripts/all-tests.sh @@ -120,7 +120,11 @@ END ;; "js-unit") - paver test_js --coverage + # Runs js tests under coverage. If the tests fail or error, then this + # will exit the script without running coverage. If the tests pass, + # then it will proceed and generate the diff-coverage reports for js. + paver test_js --coverage || exit 1 + paver diff_coverage ;; "commonlib-js-unit")