modules/test: init, replacing dontRun arg

Introduces the `test.runNvim` module option.

Deprecates the historic `dontRun` argument passed to the test-derivation
helpers.

Soft-deprecates the `tests.dontRun` attr used in tests currently.
This commit is contained in:
Matt Sturgeon 2024-08-20 00:30:16 +01:00
parent 312db6b6e2
commit f47374fd26
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
6 changed files with 69 additions and 25 deletions

View file

@ -1,13 +1,13 @@
# Args probably only needs pkgs and lib
{
makeNixvim,
makeNixvimWithModule,
pkgs,
lib ? pkgs.lib,
_nixvimTests ? false,
...
}@args:
{
# Add all exported modules here
check = import ../tests/test-derivation.nix { inherit makeNixvim makeNixvimWithModule pkgs; };
check = import ../tests/test-derivation.nix { inherit makeNixvimWithModule lib pkgs; };
helpers = import ./helpers.nix (args // { inherit _nixvimTests; });
}