14 lines
351 B
Nix
14 lines
351 B
Nix
path: let
|
|
it = import ./it.nix;
|
|
describe = import ./describe.nix;
|
|
suite = import path;
|
|
in
|
|
builtins.trace ("testing " + builtins.baseNameOf path)
|
|
(
|
|
if !builtins.isFunction suite
|
|
then throw "A test suite should be in the form { it }: [ <tests> ]."
|
|
else {
|
|
inherit path;
|
|
results = suite {inherit it describe;};
|
|
}
|
|
)
|