namaka
Snapshot testing tool for Nix based on haumea
nix shell github:nix-community/namaka
namaka check # run checks
namaka review # review pending snapshots
Usage
Usage: namaka <COMMAND>
Commands:
check Wrapper around `nix flake check` to prepare snapshots for failed tests [aliases: c]
review Review pending snapshots and selectively accept or reject them [aliases: r]
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
-V, --version Print version
load
Type: { flake, dir?, ... } -> { ... }
Arguments:
-
flake
:Path
Path to the Nix flake.
-
(optional)
dir
:String
Path to the testing directory relative to
flake
, defaults totests
.${flake}/${dir}
is passed tohaumea.load
'ssrc
option.
Wrapper around haumea.load
to loads snapshot tests from a directory. See tests for how the directory should be structured. Ignore the _snapshots
directory, as it is automatically generated by namaka.
The rest of the arguments are passed directory to haumea.load
, with the exception of src
, which always gets overwritten (ignored).