Allow selecting a subset of tests.
This commit is contained in:
parent
173dc9fb54
commit
a8697a6254
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue