-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
in case of a test run error (missing script), the run.sh script was n…
…ot writing the result.json file
- Loading branch information
Showing
2 changed files
with
4 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,5 @@ | ||
{ | ||
"version": 2, | ||
"status": "fail", | ||
"test-environment": { | ||
"bash": "5.2.21(1)-release", | ||
"bats": "Bats 1.5.0" | ||
}, | ||
"tests": [ | ||
{ | ||
"name": "say hello", | ||
"status": "fail", | ||
"test_code": "run bash one_passing.sh\n[ \"$status\" -eq 0 ]\n[ \"$output\" == \"Hello, World!\" ]", | ||
"message": "(in test file missing_script.bats, line 5)\n `[ \"$status\" -eq 0 ]' failed\n" | ||
} | ||
] | ||
"status": "error", | ||
"message": "1..1\nnot ok 1 say hello\n# (in test file missing_script.bats, line 5)\n# `[ \"$status\" -eq 0 ]' failed\n\nThe following warnings were encountered during tests:\nBW01: `run`'s command `bash one_passing.sh` exited with code 127, indicating 'Command not found'. Use run's return code checks, e.g. `run -127`, to fix this message.\n (from function `run' in file /home/linuxbrew/.linuxbrew/Cellar/bats-core/1.11.0/lib/bats-core/test_functions.bash, line 426,\n in test file missing_script.bats, line 4)" | ||
} |