Exit codes
Every ending has its own code, so a pipeline can tell a failure of the tool from a failure of your application.
| exit code | name | meaning |
|---|---|---|
0 | OK | the run succeeded |
1 | RUNTIME | a tool failure that belongs nowhere else |
2 | USAGE | wrong invocation syntax or an unknown flag |
3 | CONFIG | a document this run was given is not valid: a recipe, a policy, a manifest or a response record |
4 | EXPECTATION | data was produced, but the application under test did not behave as the manifest says |
5 | DATA | the recipe is valid, but it cannot be satisfied |
6 | IO | a read or a write failed |
130 | INTERRUPTED | stopped by the user |
143 | TERMINATED | stopped by the system |
130 and 143 mean the run was stopped, by you or by the system.
Only 4 is about your application: the data was produced, and your application did not do with it what the manifest says. Every other code but 0 is about the run itself, and the message on standard error says what went wrong and what to do about it.