Skip to content

Commit 39b9392

Browse files
Use message key instead of output key in results.json files (#7)
1 parent 0a38bcd commit 39b9392

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

bin/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ else
6363

6464
printf "${colorized_test_output}"
6565

66-
jq -n --arg output "${colorized_test_output}" '{version: 1, status: "fail", output: $output}' > ${results_file}
66+
jq -n --arg output "${colorized_test_output}" '{version: 1, status: "fail", message: $output}' > ${results_file}
6767
fi
6868

6969
echo "${slug}: done"
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"version": 1,
33
"status": "fail",
4-
"output": "* Build successful.\n* Running tests...\n- Suite: Leap.isLeapYear\n\u001b[01;31m\u001b[K ☠ Failed: leap year because expected true, got false\u001b[m\u001b[K\n\u001b[01;31m\u001b[K ☠ Failed: non-leap year because expected false, got true\u001b[m\u001b[K\n\u001b[01;31m\u001b[K ☠ Failed: non-leap even year because expected false, got true\u001b[m\u001b[K\n\u001b[01;31m\u001b[K ☠ Failed: century because expected false, got true\u001b[m\u001b[K\n\u001b[01;31m\u001b[K ☠ Failed: second century because expected false, got true\u001b[m\u001b[K\n\u001b[01;31m\u001b[K ☠ Failed: fourth century because expected true, got false\u001b[m\u001b[K\n\u001b[01;31m\u001b[K ☠ Failed: y2k because expected true, got false\u001b[m\u001b[K\n\n7 tests failed:\n\nIn \"Leap.isLeapYear\":\n In \"y2k\":\n\u001b[01;31m\u001b[KError: Error: expected true, got false\u001b[m\u001b[K\n\nIn \"Leap.isLeapYear\":\n In \"fourth century\":\n\u001b[01;31m\u001b[KError: Error: expected true, got false\u001b[m\u001b[K\n\nIn \"Leap.isLeapYear\":\n In \"second century\":\n\u001b[01;31m\u001b[KError: Error: expected false, got true\u001b[m\u001b[K\n\nIn \"Leap.isLeapYear\":\n In \"century\":\n\u001b[01;31m\u001b[KError: Error: expected false, got true\u001b[m\u001b[K\n\nIn \"Leap.isLeapYear\":\n In \"non-leap even year\":\n\u001b[01;31m\u001b[KError: Error: expected false, got true\u001b[m\u001b[K\n\nIn \"Leap.isLeapYear\":\n In \"non-leap year\":\n\u001b[01;31m\u001b[KError: Error: expected false, got true\u001b[m\u001b[K\n\nIn \"Leap.isLeapYear\":\n In \"leap year\":\n\u001b[01;31m\u001b[KError: Error: expected true, got false\u001b[m\u001b[K\n\n\u001b[01;31m\u001b[K* ERROR: Subcommand terminated with exit code 1\u001b[m\u001b[K"
4+
"message": "* Build successful.\n* Running tests...\n- Suite: Leap.isLeapYear\n\u001b[01;31m\u001b[K ☠ Failed: leap year because expected true, got false\u001b[m\u001b[K\n\u001b[01;31m\u001b[K ☠ Failed: non-leap year because expected false, got true\u001b[m\u001b[K\n\u001b[01;31m\u001b[K ☠ Failed: non-leap even year because expected false, got true\u001b[m\u001b[K\n\u001b[01;31m\u001b[K ☠ Failed: century because expected false, got true\u001b[m\u001b[K\n\u001b[01;31m\u001b[K ☠ Failed: second century because expected false, got true\u001b[m\u001b[K\n\u001b[01;31m\u001b[K ☠ Failed: fourth century because expected true, got false\u001b[m\u001b[K\n\u001b[01;31m\u001b[K ☠ Failed: y2k because expected true, got false\u001b[m\u001b[K\n\n7 tests failed:\n\nIn \"Leap.isLeapYear\":\n In \"y2k\":\n\u001b[01;31m\u001b[KError: Error: expected true, got false\u001b[m\u001b[K\n\nIn \"Leap.isLeapYear\":\n In \"fourth century\":\n\u001b[01;31m\u001b[KError: Error: expected true, got false\u001b[m\u001b[K\n\nIn \"Leap.isLeapYear\":\n In \"second century\":\n\u001b[01;31m\u001b[KError: Error: expected false, got true\u001b[m\u001b[K\n\nIn \"Leap.isLeapYear\":\n In \"century\":\n\u001b[01;31m\u001b[KError: Error: expected false, got true\u001b[m\u001b[K\n\nIn \"Leap.isLeapYear\":\n In \"non-leap even year\":\n\u001b[01;31m\u001b[KError: Error: expected false, got true\u001b[m\u001b[K\n\nIn \"Leap.isLeapYear\":\n In \"non-leap year\":\n\u001b[01;31m\u001b[KError: Error: expected false, got true\u001b[m\u001b[K\n\nIn \"Leap.isLeapYear\":\n In \"leap year\":\n\u001b[01;31m\u001b[KError: Error: expected true, got false\u001b[m\u001b[K\n\n\u001b[01;31m\u001b[K* ERROR: Subcommand terminated with exit code 1\u001b[m\u001b[K"
55
}
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"version": 1,
33
"status": "fail",
4-
"output": "\u001b[01;31m\u001b[KError found:\u001b[m\u001b[K\nat src/Leap.purs line 1, column 1 - line 1, column 1\n\n Unable to parse module:\n unexpected end of input\n\n\nSee https://github.com/purescript/documentation/blob/master/errors/ErrorParsingModule.md for more information,\nor to contribute content related to this error.\n\n\n\u001b[01;31m\u001b[K* ERROR: Subcommand terminated with exit code 1\u001b[m\u001b[K"
4+
"message": "\u001b[01;31m\u001b[KError found:\u001b[m\u001b[K\nat src/Leap.purs line 1, column 1 - line 1, column 1\n\n Unable to parse module:\n unexpected end of input\n\n\nSee https://github.com/purescript/documentation/blob/master/errors/ErrorParsingModule.md for more information,\nor to contribute content related to this error.\n\n\n\u001b[01;31m\u001b[K* ERROR: Subcommand terminated with exit code 1\u001b[m\u001b[K"
55
}
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"version": 1,
33
"status": "fail",
4-
"output": "* Build successful.\n* Running tests...\n- Suite: Leap.isLeapYear\n\u001b[01;32m\u001b[K ✓ Passed: leap year\u001b[m\u001b[K\n\u001b[01;32m\u001b[K ✓ Passed: non-leap year\u001b[m\u001b[K\n\u001b[01;32m\u001b[K ✓ Passed: non-leap even year\u001b[m\u001b[K\n\u001b[01;32m\u001b[K ✓ Passed: century\u001b[m\u001b[K\n\u001b[01;32m\u001b[K ✓ Passed: second century\u001b[m\u001b[K\n\u001b[01;31m\u001b[K ☠ Failed: fourth century because expected true, got false\u001b[m\u001b[K\n\u001b[01;31m\u001b[K ☠ Failed: y2k because expected true, got false\u001b[m\u001b[K\n\n2 tests failed:\n\nIn \"Leap.isLeapYear\":\n In \"y2k\":\n\u001b[01;31m\u001b[KError: Error: expected true, got false\u001b[m\u001b[K\n\nIn \"Leap.isLeapYear\":\n In \"fourth century\":\n\u001b[01;31m\u001b[KError: Error: expected true, got false\u001b[m\u001b[K\n\n\u001b[01;31m\u001b[K* ERROR: Subcommand terminated with exit code 1\u001b[m\u001b[K"
4+
"message": "* Build successful.\n* Running tests...\n- Suite: Leap.isLeapYear\n\u001b[01;32m\u001b[K ✓ Passed: leap year\u001b[m\u001b[K\n\u001b[01;32m\u001b[K ✓ Passed: non-leap year\u001b[m\u001b[K\n\u001b[01;32m\u001b[K ✓ Passed: non-leap even year\u001b[m\u001b[K\n\u001b[01;32m\u001b[K ✓ Passed: century\u001b[m\u001b[K\n\u001b[01;32m\u001b[K ✓ Passed: second century\u001b[m\u001b[K\n\u001b[01;31m\u001b[K ☠ Failed: fourth century because expected true, got false\u001b[m\u001b[K\n\u001b[01;31m\u001b[K ☠ Failed: y2k because expected true, got false\u001b[m\u001b[K\n\n2 tests failed:\n\nIn \"Leap.isLeapYear\":\n In \"y2k\":\n\u001b[01;31m\u001b[KError: Error: expected true, got false\u001b[m\u001b[K\n\nIn \"Leap.isLeapYear\":\n In \"fourth century\":\n\u001b[01;31m\u001b[KError: Error: expected true, got false\u001b[m\u001b[K\n\n\u001b[01;31m\u001b[K* ERROR: Subcommand terminated with exit code 1\u001b[m\u001b[K"
55
}
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"version": 1,
33
"status": "fail",
4-
"output": "\u001b[01;31m\u001b[KError found:\u001b[m\u001b[K\nat src/Leap.purs line 1, column 14 - line 1, column 14\n\n Unable to parse module:\n unexpected !@!@#\n expecting ( or \"where\"\n\n\nSee https://github.com/purescript/documentation/blob/master/errors/ErrorParsingModule.md for more information,\nor to contribute content related to this error.\n\n\n\u001b[01;31m\u001b[K* ERROR: Subcommand terminated with exit code 1\u001b[m\u001b[K"
4+
"message": "\u001b[01;31m\u001b[KError found:\u001b[m\u001b[K\nat src/Leap.purs line 1, column 14 - line 1, column 14\n\n Unable to parse module:\n unexpected !@!@#\n expecting ( or \"where\"\n\n\nSee https://github.com/purescript/documentation/blob/master/errors/ErrorParsingModule.md for more information,\nor to contribute content related to this error.\n\n\n\u001b[01;31m\u001b[K* ERROR: Subcommand terminated with exit code 1\u001b[m\u001b[K"
55
}

0 commit comments

Comments
 (0)