Skip to content

Commit

Permalink
Print the coverage report to the comand line
Browse files Browse the repository at this point in the history
After this change, the overall coverage report will be printed to the
console even though tests failed. This will ensure that we will always
have the latest coverage data.

Signed-off-by: Jan Richter <[email protected]>
  • Loading branch information
richtja committed Jun 18, 2024
1 parent c60cbfc commit 77378a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion selftests/run_coverage
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash -e
#!/bin/bash
# Execute all unittests with coverage and report code coverage.
#
# Copyright: Red Hat Inc.
Expand All @@ -25,4 +25,6 @@ echo
$COVERAGE report -m --include "avocado/plugins/*"
echo
$COVERAGE report -m --include "optional_plugins/*"
echo
$COVERAGE report
$COVERAGE xml

0 comments on commit 77378a7

Please sign in to comment.