feat: add support for pretty/nix format

improve handling string test values
This commit is contained in:
technofab 2025-05-10 21:55:08 +02:00
parent 0a1bbae2c3
commit e029fae0b8
4 changed files with 52 additions and 14 deletions

View file

@ -77,6 +77,7 @@
pos = __curPos;
expected = null;
actualDrv = pkgs.runCommand "test-error-drv" {} ''
echo "This works, but its better to just write 'fail' to \$out and expect 'success' or sth."
exit 1
'';
}
@ -88,6 +89,17 @@
pos = __curPos;
actual = {hello = "world";};
}
{
name = "pretty-snapshot";
type = "snapshot";
format = "pretty";
actual = {
example = args: {};
example2 = {
drv = pkgs.hello;
};
};
}
{
name = "test-drv";
pos = __curPos;