reel test
Run tapes as tests.
reel test [flags] <paths> ...Runs tapes, and directories of *.tape files, without writing their outputs. A failed Wait or Snapshot fails the tape, and any failed tape makes the exit code 3.
| Flag | Is |
|---|---|
--update, -u | Writes each Snapshot's screen to its golden file, instead of comparing them |
--artifacts DIR | Writes a .cast and a .gif of each failed tape here |
--deny, --skip | As for reel run |
$ reel test tests/
FAIL tests/broken.tape 1.11s
tape: tests/broken.tape:6:1: wait for /Genmaicha/ on the screen timed out after 500ms; the screen was:
╭──────────────────────────────────────────────────────────────────────╮
│ The Tea Shop │
│ │
│ Sencha green 1m │
│ Matcha green 0m │
│ Gyokuro green 2m │
│ Oolong oolong 3m │
│ Assam black 4m │
│ Darjeeling black 3m │
│ Pu-erh dark 5m │
│ │
│ Pick a tea. │
│ license tea-8f3a91c2d7 │
╰──────────────────────────────────────────────────────────────────────╯
↑/↓ choose / filter enter brew q quit
reel: wait for /Genmaicha/: context deadline exceeded
ok tests/shop.tape 710ms
1 passed, 1 failedSee Test with tapes.
Last updated on