@@ -48,16 +48,16 @@ if [ -f "$json_file" ]; then
4848 ] +
4949 # Add test name blocks in order: failed, inconclusive, passed, ignored
5050 (if .failedCount > 0 then
51- [{type: "section", text: {type: "mrkdwn", text: ("*❌ Failed tests:*\n" + ([.failedTests | to_entries[] | " *[ \(.key)] *\n" + (.value | map(" • " + .) | join("\n"))] | join("\n")))}}]
51+ [{type: "section", text: {type: "mrkdwn", text: ("*❌ Failed tests:*\n" + ([.failedTests | to_entries[] | " *\(.key): *\n" + (.value | map(" • " + .) | join("\n"))] | join("\n")))}}]
5252 else [] end) +
5353 (if .inconclusiveCount > 0 then
54- [{type: "section", text: {type: "mrkdwn", text: ("*⚠️ Inconclusive tests:*\n" + ([.inconclusiveTests | to_entries[] | " *[ \(.key)] *\n" + (.value | map(" • " + .) | join("\n"))] | join("\n")))}}]
54+ [{type: "section", text: {type: "mrkdwn", text: ("*⚠️ Inconclusive tests:*\n" + ([.inconclusiveTests | to_entries[] | " *\(.key): *\n" + (.value | map(" • " + .) | join("\n"))] | join("\n")))}}]
5555 else [] end) +
5656 (if .passedCount > 0 then
57- [{type: "section", text: {type: "mrkdwn", text: ("*✅ Passed tests:*\n" + ([.passedTests | to_entries[] | " *[ \(.key)] *\n" + (.value | map(" • " + .) | join("\n"))] | join("\n")))}}]
57+ [{type: "section", text: {type: "mrkdwn", text: ("*✅ Passed tests:*\n" + ([.passedTests | to_entries[] | " *\(.key): *\n" + (.value | map(" • " + .) | join("\n"))] | join("\n")))}}]
5858 else [] end) +
5959 (if .ignoredCount > 0 then
60- [{type: "section", text: {type: "mrkdwn", text: ("*⏭️ Ignored tests:*\n" + ([.ignoredTests | to_entries[] | " *[ \(.key)] *\n" + (.value | map(" • " + .) | join("\n"))] | join("\n")))}}]
60+ [{type: "section", text: {type: "mrkdwn", text: ("*⏭️ Ignored tests:*\n" + ([.ignoredTests | to_entries[] | " *\(.key): *\n" + (.value | map(" • " + .) | join("\n"))] | join("\n")))}}]
6161 else [] end)
6262 ' " $json_file " )
6363fi
0 commit comments