Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion Tests/IntegrationTests/combine-test-results.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,25 @@ ERROR: \(.error // 0)
SKIP: \(.skip // 0)"
'

# Print failed/error tests to stdout if any exist
FAILED_STDOUT=$(find . -maxdepth 1 -name '*.json' ! -name '_summary*.json' | xargs -I '{}' jq -r '[.[]
| select(.status == "fail" or .status == "error")
| " \(.id): \(.description)\n \(.message)"]
| .[]' '{}')

if [ -n "${FAILED_STDOUT}" ]; then
echo ""
echo "Failed tests:"
echo "${FAILED_STDOUT}"
fi

# Have to use warning annotation level, notice isn't working anymore (but could be in future).

SUMMARY=$(ls _summary*.json | xargs jq --arg wf "$WORKFLOW_FILE" '[ .
| { "file": $wf, "line": 1, "message": ("PASS: \(.pass // 0)\nFAIL: \(.fail // 0)\nERROR: \(.error // 0)\nSKIP: \(.skip // 0)"), "annotation_level": "warning" }
]')

FAILURES=$(ls -I '_summary*.json' | xargs -I '{}' jq --arg wf "$WORKFLOW_FILE" '[ .[]
FAILURES=$(find . -maxdepth 1 -name '*.json' ! -name '_summary*.json' | xargs -I '{}' jq --arg wf "$WORKFLOW_FILE" '[ .[]
| select(((.status == "skip") and (.message | contains("TODO") | not))
or .status == "fail"
or .status == "error")
Expand Down
Loading