diff options
-rwxr-xr-x | tools/teamcity-coverage-report.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/teamcity-coverage-report.sh b/tools/teamcity-coverage-report.sh index ea3de02..2e32241 100755 --- a/tools/teamcity-coverage-report.sh +++ b/tools/teamcity-coverage-report.sh @@ -19,8 +19,8 @@ coverage report --rcfile=`dirname $0`/../.coveragerc > "${report_file}" 2>/dev/n total_no_lines=$(awk '/TOTAL/{printf("%s",$2)}' < "${report_file}") total_no_misses=$(awk '/TOTAL/{printf("%s",$3)}' < "${report_file}") total_no_covered=$((${total_no_lines} - ${total_no_misses})) -echo "##teamcity[buildStatisticValue key='<CodeCoverageAbsLTotal>' value='""<${total_no_lines}"">']" -echo "##teamcity[buildStatisticValue key='<CodeCoverageAbsLCovered>' value='""<${total_no_covered}"">']" +echo "##teamcity[buildStatisticValue key='CodeCoverageAbsLTotal' value='""${total_no_lines}""']" +echo "##teamcity[buildStatisticValue key='CodeCoverageAbsLCovered' value='""${total_no_covered}""']" # Display for human consumption and remove ascii file. cat "${report_file}" |