modules/test: check warnings/assertions

Warnings and assertions defined as `config.warnings` and `config.assertions`
respectively will be checked as part of the test derivation, instead of
when evaluating the modules.

Adds new `checkWarnings` and `checkAssertions` test options (default true).
This commit is contained in:
Matt Sturgeon 2024-08-05 14:25:44 +01:00
parent 83c2844bec
commit 088e584e54
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
2 changed files with 52 additions and 11 deletions

View file

@ -62,6 +62,9 @@ let
extraSpecialArgs = {
defaultPkgs = pkgs;
} // extraSpecialArgs;
# Don't check assertions/warnings while evaluating nixvim config
# We'll let the test derivation handle that
check = false;
};
in
result.config.test.derivation;