nix-community.nixvim/tests
Matt Sturgeon 10f64e6c96
tests/test-derivation: allow tests to be modules
Use `mkTestDerivationFromNixvimModule` instead of `mkTestDerivation`,
allowing "proper" modules to be used instead of plain attr configs.

This is useful for more complex tests that wish to use `config` or
`options` arguments, e.g:

```nix
{config, options, ...}: {
  /* some cool test */
}
```

To allow `tests.dontRun` to be defined on such a test, the module is
allowed to be nested as `module`, e.g:

```nix
{
  tests.dontRun = true;
  module = {config, options, ...}: {
    /* a disabled test */
  };
}
```

Also ended up doing some general cleanup, removing an unused function,
etc.
2024-06-29 22:02:44 +01:00
..
modules misc/post-release 24.05: update workflows 2024-06-06 14:46:34 +02:00
test-sources tests/plugins/none-ls: re-enable rubyfmt test for linux 2024-06-29 12:36:07 +02:00
default.nix tests/test-derivation: allow tests to be modules 2024-06-29 22:02:44 +01:00
enable-except-in-tests.nix treewide: Reformat with nixfmt 2024-05-05 22:00:40 +02:00
extend.nix treewide: Reformat with nixfmt 2024-05-05 22:00:40 +02:00
extra-args.nix treewide: Reformat with nixfmt 2024-05-05 22:00:40 +02:00
fetch-tests.nix treewide: Reformat with nixfmt 2024-05-05 22:00:40 +02:00
lib-tests.nix lib/lua: refactor toLuaObject, now configurable 2024-06-28 22:44:43 +01:00
no-flake.nix treewide: Reformat with nixfmt 2024-05-05 22:00:40 +02:00
test-derivation.nix tests/test-derivation: allow tests to be modules 2024-06-29 22:02:44 +01:00