FAQ
What about a watch mode?
This adds a lot of additional complexity and for now is better dealt with by using external file watcher tools such as Reflex & Watchman.
Can I change the colors?
lix-unit
uses difftastic, which can be configured via environment variables. You can turn off
colors via DFT_COLOR=never
, give difftastic a hint for choosing better colors with DFT_BACKGROUND=light
or see the full
list of options via e.g. nix run nixpkgs#difftastic -- --help
.
Comparison with other tools
This comparison matrix was originally taken from Unit test your Nix code but has been adapted. Pythonix is excluded as it's unmaintained.
Tool | Can test eval failures | Tests defined in Nix | in nixpkgs | snapshot testing(1) | Supports Lix |
---|---|---|---|---|---|
Lix-unit | yes | yes | no | no | yes |
Nix-unit | yes | yes | yes | no | no |
runTests | no | yes | yes | no | yes |
Nixt | no | yes | no | no | yes |
Namaka | no | yes | yes | yes | ? |