Small wrapper for snapshot testing

Also known as Golden Master Testing

Open in Gitpod

⚠️ Gitpod will open the root folder

Due to some limitations of Gitpod, we cannot simply open a sub-folder

Opening in Gitpod will open the root folder

Two terminals will be opened :

  1. the first in the root folder
  2. the second in the target folder

Both terminals automatically load the environment of their current folder

Screenshot of Gitpod showing two terminals open, the second being open in the target folder

Or with Nix

NIX_CONFIG="extra-experimental-features = flakes nix-command" \
nix flake new --template "gitlab:pinage404/nix-sandboxes#snapshot_testing" ./your_new_project_directory

In .envrc change the SNAPSHOT_TEST_COMMAND with your actual test command

export SNAPSHOT_TEST_COMMAND="sh ./bin/hello" # change this

Available commands

Or just execute

mask help

Amesome Testing


Read code on GitLab