feat: improve testing

This commit is contained in:
Jaka Hudoklin 2019-03-08 00:39:09 +01:00
parent ae431d1acc
commit 987c6e4173
No known key found for this signature in database
GPG key ID: 6A08896BFD32BD95
6 changed files with 51 additions and 18 deletions

View file

@ -245,14 +245,14 @@ in {
testing.result = mkOption {
description = "Testing result";
type = types.package;
default = pkgs.writeText "testing-report.json" (builtins.toJSON {
type = types.attrs;
default = {
success = cfg.success;
tests = map (test: {
inherit (test) name description evaled success test;
assertions = moduleToAttrs test.assertions;
}) (filter (test: test.enable) cfg.tests);
});
};
};
};
}