1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ lib, root }:
args:
let
inherit (builtins)
attrNames
;
inherit (lib)
generators
runTests
;
tests = root.load args;
results = runTests (tests // {
tests = attrNames tests;
});
in
assert tests ? tests
-> "'tests' cannot be used as the name of a test";
assert results != [ ]
-> throw (generators.toPretty { } results);
{ }