Skip to content

Latest commit

 

History

History
22 lines (11 loc) · 360 Bytes

fn_snapshot.md

File metadata and controls

22 lines (11 loc) · 360 Bytes

Best: snapshot

Perform snapshot testing.

By default, snapshots will be saved to $PWD/test-snapshots/[suite]/[test].[type].snapshot.

Arguments:

  • $1 "stdout" -- Perform snapshot testing on STDOUT.
  • $1 "stderr" -- Perform snapshot testing on STDERR.

Example:

snapshot stdout
echo "$RANDOM" # Likely to fail.