Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
b419072
Option to use posix exit code upon fatal signal
73rhodes May 23, 2023
7b36d1e
Update test/integration/options/posixExitCodes.spec.js
73rhodes Mar 15, 2024
702ec53
Address PR review comments mocha org
73rhodes Mar 18, 2024
cb2ba84
Address PR review comments mocha org
73rhodes Mar 18, 2024
d000c32
Update docs/index.md
73rhodes Mar 25, 2024
859abe6
Fix exit code when no signal caught
73rhodes Apr 11, 2024
34e196d
Coverage for posix exit code with normally failing tests
73rhodes Apr 11, 2024
7c85e3a
Update docs/index.md
73rhodes Apr 15, 2024
abdd3d5
Address PR comments; use os.constants
73rhodes Apr 15, 2024
e94876f
Remove test that asserts the problematic behavior
73rhodes Apr 23, 2024
169927a
Omit win32 from signals test suite
73rhodes Apr 26, 2024
73259a2
Update docs/index.md
73rhodes May 1, 2024
5938f49
WIP - support posix-exit-codes option for both child-process and in-p…
73rhodes Jul 9, 2024
b155129
Update bin/mocha.js
73rhodes Apr 23, 2025
5af8365
Update lib/cli/run-helpers.js
73rhodes Apr 23, 2025
d09c2bc
Update lib/cli/run-helpers.js
73rhodes Apr 23, 2025
9c394f0
Update lib/cli/run-helpers.js
73rhodes Apr 23, 2025
bfe7388
Use preferred node import syntax
73rhodes Apr 23, 2025
b3bc5c5
Removed unused constants
73rhodes Apr 23, 2025
f365cbc
update run-helpers.js: Fix variable name
73rhodes Apr 23, 2025
f9ae3f5
Simplification of child process exit handlers
73rhodes Apr 23, 2025
8b3f2e3
Add test case for numerical signal
73rhodes Apr 23, 2025
7e0efd2
Update signal-handling tests; remove unsupported cases
73rhodes May 6, 2025
55cbd8b
Merge pull request #13 from zendesk/dderidder/unit-tests
73rhodes May 6, 2025
6613a02
Don't test for posix signals on windows
73rhodes May 6, 2025
7347748
Update lib/cli/run-helpers.js
73rhodes May 15, 2025
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
Prev Previous commit
Next Next commit
Update docs/index.md
Co-authored-by: Josh Goldberg ✨ <[email protected]>
  • Loading branch information
73rhodes and JoshuaKGoldberg committed Apr 23, 2025
commit 7c85e3a0b0f28535e1cc91e47e0e8bb33f661fe6
8 changes: 8 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -967,6 +967,14 @@ By using this option in conjunction with `--check-leaks`, you can specify a whit

Exits with standard POSIX exit codes instead of the number of failed tests.

Those exit codes are:

* `0`: if all tests passed
* `1`: if any test failed
* `128 + <signal>` if given a signal, such as:
* 134: `SIGABRT` (`128 + 6`)
* 143: `SIGTERM` (`128 + 15`)

### `--retries <n>`

Retries failed tests `n` times.
Expand Down