tests: add regression test for warnings + assertions

Ensure `mkTestDerivationFromNixvimModule` correctly test warnings & assertions.

Also did some minor cleanup:
- Call `failing-tests.nix` using `pkgs.callPackage`
- Replace repetive use of `testBuildFailure` with a wrapper
  `mkFailingNixvimTest`
This commit is contained in:
Matt Sturgeon 2024-08-28 00:20:37 +01:00
parent 4814147442
commit 1c879ec3aa
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
2 changed files with 62 additions and 18 deletions

View file

@ -25,8 +25,7 @@
inherit (self.lib.${system}.check) mkTestDerivationFromNixvimModule;
};
failing-tests = import ../tests/failing-tests.nix {
inherit pkgs;
failing-tests = pkgs.callPackage ../tests/failing-tests.nix {
inherit (self.lib.${system}.check) mkTestDerivationFromNixvimModule;
};