nix-config/tests/neovim.nix
Donovan Glover 30e0239cf7
flake.nix: Dynamically import tests
Makes it possible to add new test files to the tests directory and have
everything instantly working.
2024-04-08 10:33:18 -04:00

19 lines
408 B
Nix

# TODO: Ensure that neovim config works without errors on startup
let
inherit (builtins) attrValues;
in
(import ../lib.nix) {
name = "neovim";
nodes.machine = { nix-config, ... }: {
imports = attrValues {
inherit (nix-config.nixosModules) system shell;
};
};
testScript = /* python */ ''
output = machine.succeed("echo 'Hello world'")
assert "Hello world" in output
'';
}