Skip to Content
steep

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.

FlagIs
--update, -uWrites each Snapshot's screen to its golden file, instead of comparing them
--artifacts DIRWrites a .cast and a .gif of each failed tape here
--deny, --skipAs 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 failed

See Test with tapes.

Last updated on