tix/test/test.test.nix

28 lines
503 B
Nix

{
describe,
it,
...
}: let
test = import ../tix/test.nix;
in [
(describe "the test function" [
(it "get's test results" {
expected = {
name = toString ./example.test.nix;
value = {
"an example" = {
succeeds = {
success = true;
};
};
};
};
actual = test ./example.test.nix;
})
(it "fails to build non test" {
actual = test ./bad/string.nix;
throws = true;
})
])
]