added option to add test suites not in a file
This commit is contained in:
parent
5007770e88
commit
bfa12db1db
4 changed files with 16 additions and 6 deletions
|
@ -8,7 +8,7 @@ in [
|
|||
(describe "the test function" [
|
||||
(it "get's test results" {
|
||||
expected = {
|
||||
name = toString ./example.test.nix;
|
||||
name = builtins.baseNameOf ./example.test.nix;
|
||||
value = {
|
||||
"an example" = {
|
||||
succeeds = {
|
||||
|
@ -23,5 +23,9 @@ in [
|
|||
actual = test ./bad/string.nix;
|
||||
throws = true;
|
||||
})
|
||||
(it "tests suite that is not a file" {
|
||||
actual = test ({...}: []);
|
||||
expected = {name = "anonymous"; value = {};};
|
||||
})
|
||||
])
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue