We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1733543 commit 434c978Copy full SHA for 434c978
hooks/command
@@ -76,6 +76,18 @@ if [ $has_errors -eq 0 ]; then
76
echo "Will create annotation anyways"
77
create_annotation=1
78
fi
79
+
80
+ if [[ -e "${annotation_path}" ]]; then
81
+ TOTAL_TESTS=$(head -4 "${annotation_path}" | grep 'Total tests' | cut -d\ -f3)
82
+ else
83
+ TOTAL_TESTS=0
84
+ fi
85
86
+ if [[ "${BUILDKITE_PLUGIN_JUNIT_ANNOTATE_MIN_TESTS:-0}" -gt "${TOTAL_TESTS}" ]]; then
87
+ create_annotation=1
88
+ fail_build=1
89
+ echo ":warning: Less than ${BUILDKITE_PLUGIN_JUNIT_ANNOTATE_MIN_TESTS} tests run"
90
91
elif ! check_size; then
92
echo "--- :warning: Failures too large to annotate"
93
0 commit comments