mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
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:
parent
312db6b6e2
commit
f47374fd26
6 changed files with 69 additions and 25 deletions
|
@ -8,5 +8,6 @@
|
|||
../.
|
||||
./files
|
||||
./output.nix
|
||||
./test.nix
|
||||
];
|
||||
}
|
||||
|
|
10
modules/top-level/test.nix
Normal file
10
modules/top-level/test.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{ lib, ... }:
|
||||
{
|
||||
options.test = {
|
||||
runNvim = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
description = "Whether to run `nvim` in the test.";
|
||||
default = true;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue