Skip to content
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

Idea: test script to run after local luarocks install #64

Open
mrcjkb opened this issue Jul 12, 2023 · 0 comments
Open

Idea: test script to run after local luarocks install #64

mrcjkb opened this issue Jul 12, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@mrcjkb
Copy link
Member

mrcjkb commented Jul 12, 2023

luarocks test/busted uses the source directories (defined in lpath of the .busted file) to run tests, not the luarocks package as defined in the rockspec.

It would be nice to have a way to run some tests against the installed package, to validate that the package works as expected.

For this purpose, a simple validate-install-cmd input may suffice.
It could be something like:

with:
  validate-install-cmd: |
    nvim -c <load-installed-package> -l require('my-package').setup()
@mrcjkb mrcjkb added the enhancement New feature or request label Jul 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant