-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for nix checks #8
Comments
Hi. Thanks for your request. I haven't implemented support for tests in a nix derivation yet. I have something in mind, like a There are some issues I need to work out though:
So the API for a nix flake check might have to look something like this: checks.${system}.default = neorocksTest {
src = self;
luaPackages = p: with p; [ ... ]; # The plugins listed in the rockspec dependencies
vimPlugins = p: with p; [ ... ]; # Additional vim plugins not available on luarocks
} |
That interface looks good, maybe also with a Could we also choose which neovim derivation to use? |
That's a good idea. |
Hello!
I'd like to use neorocks to run tests locally, but without having to play with luarocks.
The goal is to use a flake check derivation and run the tests using
nix flake check
which will try to buildtheflake.checks.${system}.default
and if that builds successfully it means the test is green.It would eb nice to show in the README or have example projects that shows how to test a neovim plugin like this
The text was updated successfully, but these errors were encountered: