Skip to content

Commit d460d29

Browse files
committed
doc: note test:interrupted in the lifecycle
The diagram only covered the normal path, ending at test:summary. Add an INTERRUPTION branch: on SIGINT the run exits before the buffered declaration-ordered events are flushed, so neither the run-level finale nor the interrupted tests' own results are emitted. Signed-off-by: sangwook <rewq5991@gmail.com>
1 parent 6763fea commit d460d29

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎doc/api/test.md‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3635,6 +3635,15 @@ subtests' status, not when its body begins executing; that moment is
36353635
│
36363636
▼
36373637
test:summary ─► stream ends
3638+
3639+
3640+
INTERRUPTION (SIGINT, e.g. Ctrl+C, while tests are still running)
3641+
────────────
3642+
test:interrupted the innermost tests still running at that moment
3643+
│ (not emitted if none were running)
3644+
▼
3645+
the run exits immediately — the buffered spine never flushes, so
3646+
neither the finale above nor those tests' own results are emitted
36383647
```
36393648

36403649
### Event: `'test:coverage'`

0 commit comments

Comments
 (0)