Skip to content

Commit

Permalink
fix: [#115] Clarify remediation steps for resolving code-coverage iss…
Browse files Browse the repository at this point in the history
…ues in pipeline
  • Loading branch information
sbp-bvanb committed Nov 12, 2024
1 parent 7954d75 commit 6388a7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ tasks:
echo "${code_coverage_output}"
if (( $(echo "{{.CODE_COVERAGE_EXPECTED}} > ${code_coverage_actual}" | bc -l) )); then
echo "The actual code coverage: '${code_coverage_actual}' is too low. Expected: '{{.CODE_COVERAGE_EXPECTED}}'."
echo "The actual code coverage: '${code_coverage_actual}' is too low. Expected: '{{.CODE_COVERAGE_EXPECTED}}'. Resolve the issue by writing more unit and/or integration tests."
exit 1
elif (( $(echo "${code_coverage_actual} > {{.CODE_COVERAGE_EXPECTED}}" | bc -l) )); then
echo "The actual code coverage: '${code_coverage_actual}' exceeds the expected coverage. Please adjust the threshold to align with the expected: '{{.CODE_COVERAGE_EXPECTED}}'."
echo "The actual code coverage: '${code_coverage_actual}' exceeds the expected coverage. Please adjust the threshold that is defined in the .github/workflows/golang.yml workflow to align with the expected: '{{.CODE_COVERAGE_EXPECTED}}'."
exit 1
fi
coverage-visual:
Expand Down

0 comments on commit 6388a7f

Please sign in to comment.