Allow selecting a subset of tests.

This commit is contained in:
Kevin Baensch 2024-11-30 17:19:03 +01:00
parent 173dc9fb54
commit a8697a6254
Signed by: derped
GPG key ID: C0F1D326C7626543

View file

@ -19,7 +19,8 @@ in
program = program =
(pkgs.writeScript "nix-unit" '' (pkgs.writeScript "nix-unit" ''
#!/usr/bin/env bash #!/usr/bin/env bash
${nix-unit}/bin/nix-unit --flake '.#tests' TEST_TARGET="tests''${1:+.}''${1}";
${nix-unit}/bin/nix-unit --flake ".#''${TEST_TARGET}";
'').outPath; '').outPath;
}; };
}; };