mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-13 18:54:30 +02:00
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:
parent
83c2844bec
commit
088e584e54
2 changed files with 52 additions and 11 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue