tix/test/test.test.nix
2024-01-03 10:14:28 +00:00

33 lines
625 B
Nix

{
describe,
it,
...
}: let
test = import ../tix/test.nix;
in [
(describe "the test function" [
(it "get's test results" {
expected = [
{
"component" = "it";
results = [
{
"msg" = "test's itself???";
"success" = true;
}
];
}
];
actual = (test ./it.test.nix).results;
})
(it "has a path" {
actual = builtins.typeOf (test ./it.test.nix).path;
expected = "path";
})
(it "fails to build non test" {
actual = test ./bad/string.nix;
throws = true;
})
])
]