@@ -43,35 +43,36 @@ bashunit test tests/ --parallel --simple
4343
4444### Test Options
4545
46- | Option | Description |
47- | ----------------------------| --------------------------------------------------|
48- | ` -a, --assert <fn> <args> ` | Run a standalone assert function |
49- | ` -e, --env, --boot <file> ` | Load custom env/bootstrap file (supports args) |
50- | ` -f, --filter <name> ` | Only run tests matching name |
51- | ` --log-junit <file> ` | Write JUnit XML report |
52- | ` -p, --parallel ` | Run tests in parallel |
53- | ` --no-parallel ` | Run tests sequentially |
54- | ` -r, --report-html <file> ` | Write HTML report |
55- | ` -R, --run-all ` | Run all assertions (don't stop on first failure) |
56- | ` -s, --simple ` | Simple output (dots) |
57- | ` --detailed ` | Detailed output (default) |
58- | ` -S, --stop-on-failure ` | Stop on first failure |
59- | ` --show-skipped ` | Show skipped tests summary at end |
60- | ` --show-incomplete ` | Show incomplete tests summary at end |
61- | ` -vvv, --verbose ` | Show execution details |
62- | ` --debug [file] ` | Enable shell debug mode |
63- | ` --no-output ` | Suppress all output |
64- | ` --failures-only ` | Only show failures |
65- | ` --strict ` | Enable strict shell mode |
66- | ` --skip-env-file ` | Skip ` .env ` loading, use shell environment only |
67- | ` -l, --login ` | Run tests in login shell context |
68- | ` --no-color ` | Disable colored output |
69- | ` --coverage ` | Enable code coverage tracking |
70- | ` --coverage-paths <paths> ` | Paths to track (default: ` src/ ` ) |
71- | ` --coverage-exclude <pat> ` | Exclusion patterns |
72- | ` --coverage-report <file> ` | LCOV output path (default: ` coverage/lcov.info ` ) |
73- | ` --coverage-min <percent> ` | Minimum coverage threshold |
74- | ` --no-coverage-report ` | Console output only, no LCOV file |
46+ | Option | Description |
47+ | --------------------------------| --------------------------------------------------|
48+ | ` -a, --assert <fn> <args> ` | Run a standalone assert function |
49+ | ` -e, --env, --boot <file> ` | Load custom env/bootstrap file (supports args) |
50+ | ` -f, --filter <name> ` | Only run tests matching name |
51+ | ` --log-junit <file> ` | Write JUnit XML report |
52+ | ` -p, --parallel ` | Run tests in parallel |
53+ | ` --no-parallel ` | Run tests sequentially |
54+ | ` -r, --report-html <file> ` | Write HTML report |
55+ | ` -R, --run-all ` | Run all assertions (don't stop on first failure) |
56+ | ` -s, --simple ` | Simple output (dots) |
57+ | ` --detailed ` | Detailed output (default) |
58+ | ` -S, --stop-on-failure ` | Stop on first failure |
59+ | ` --show-skipped ` | Show skipped tests summary at end |
60+ | ` --show-incomplete ` | Show incomplete tests summary at end |
61+ | ` -vvv, --verbose ` | Show execution details |
62+ | ` --debug [file] ` | Enable shell debug mode |
63+ | ` --no-output ` | Suppress all output |
64+ | ` --failures-only ` | Only show failures |
65+ | ` --strict ` | Enable strict shell mode |
66+ | ` --skip-env-file ` | Skip ` .env ` loading, use shell environment only |
67+ | ` -l, --login ` | Run tests in login shell context |
68+ | ` --no-color ` | Disable colored output |
69+ | ` --coverage ` | Enable code coverage tracking |
70+ | ` --coverage-paths <paths> ` | Paths to track (default: ` src/ ` ) |
71+ | ` --coverage-exclude <pat> ` | Exclusion patterns |
72+ | ` --coverage-report <file> ` | LCOV output path (default: ` coverage/lcov.info ` ) |
73+ | ` --coverage-report-html <dir> ` | Generate HTML report with line highlighting |
74+ | ` --coverage-min <percent> ` | Minimum coverage threshold |
75+ | ` --no-coverage-report ` | Console output only, no LCOV file |
7576
7677### Standalone Assert
7778
@@ -307,14 +308,15 @@ bashunit test tests/ --coverage --coverage-paths src/,lib/ --coverage-min 80
307308
308309** Coverage options:**
309310
310- | Option | Description |
311- | --------| -------------|
312- | ` --coverage ` | Enable coverage tracking |
313- | ` --coverage-paths <paths> ` | Comma-separated paths to track (default: ` src/ ` ) |
311+ | Option | Description |
312+ | --------------------------------- | ---------------------------------------------------------------- -------------|
313+ | ` --coverage ` | Enable coverage tracking |
314+ | ` --coverage-paths <paths> ` | Comma-separated paths to track (default: ` src/ ` ) |
314315| ` --coverage-exclude <patterns> ` | Comma-separated patterns to exclude (default: ` tests/*,vendor/*,*_test.sh ` ) |
315- | ` --coverage-report <file> ` | LCOV output file path (default: ` coverage/lcov.info ` ) |
316- | ` --coverage-min <percent> ` | Minimum coverage percentage; fails if below |
317- | ` --no-coverage-report ` | Show console report only, don't generate LCOV file |
316+ | ` --coverage-report <file> ` | LCOV output file path (default: ` coverage/lcov.info ` ) |
317+ | ` --coverage-report-html <dir> ` | Generate HTML coverage report with line-by-line highlighting |
318+ | ` --coverage-min <percent> ` | Minimum coverage percentage; fails if below |
319+ | ` --no-coverage-report ` | Show console report only, don't generate LCOV file |
318320
319321::: tip
320322Coverage works with parallel execution (` -p ` ). Each worker tracks coverage independently, and results are aggregated before reporting.
0 commit comments