Terminal: quality
passingResults of the run of the commit 8df3cc3b89 at 2026-11-22 16:24 UTC (the run) that made this site; a library whose suite was not run in it has none.
The library: Terminal.
Quality gate
The library holds every condition of the gate.
| Condition | Holds | Why not |
|---|---|---|
| its tests were in the run | yes | |
| no test failed | yes | |
| no open issue of severity high or critical | yes |
Line coverage
92.8% of 776 lines of 5 source files are reached by the library's tests. The least covered files:
| File | Lines | Hit | Covered |
|---|---|---|---|
commons/terminal/src/vt.ts | 335 | 295 | 88.1% |
commons/terminal/src/commands.ts | 74 | 70 | 94.6% |
commons/terminal/src/palette.ts | 44 | 42 | 95.5% |
commons/terminal/src/args.ts | 231 | 221 | 95.7% |
commons/terminal/src/width.ts | 92 | 92 | 100% |
Tests
42 tests: 42 passed, 0 failed, 0 skipped, 0 planned or other.
Slowest
| Test | File | Result | Time |
|---|---|---|---|
| declared options written into a command line in any valid form parse back to the same values (round trip) | suite/args.test.ts | passed | 36 ms |
| a text cut fits its width, and its head and tail make the text and its width again (property) | suite/width.test.ts | passed | 17 ms |
| a line cut to the width never wraps, and leaves no style on (property) | suite/vt.test.ts | passed | 11 ms |
| plain text written to a screen reads back wrapped at its width (property) | suite/vt.test.ts | passed | 11 ms |
| a painted text without colour is the text, and with colour reads back as the text (property) | suite/palette.test.ts | passed | 2 ms |
| colour only where it is allowed, always reset after, never for plain or an empty text | suite/palette.test.ts | passed | 2 ms |
| a negatable flag: --name gives true, --no-name false, absent its default or undefined | suite/args.test.ts | passed | 1 ms |
| an undeclared option is refused, with the nearest declared name | suite/args.test.ts | passed | 1 ms |
| errors are values: a usage error is returned, never thrown | suite/args.test.ts | passed | 1 ms |
| long options: --name VALUE, --name=VALUE, an empty value, a value that starts with a dash | suite/args.test.ts | passed | 1 ms |
History
The last 6 runs in which the library's tests ran, oldest first.
Requirements
6 requirements: 5 proved, 0 partly (a test skipped or planned), 0 failing, 1 with no test recorded.
Not proved by a passing test: 0001-terminal FR-006