Skip to content

[Feature] lx run should support test dependencies #1316

@mrcjkb

Description

@mrcjkb

lx run currently only runs packages installed to the project tree. It should also include test dependencies, such as luacov.

Discussed in #1315

Originally posted by ALameLlama January 27, 2026
Hey,

I'm a little confused. so I've been running lx test -- --coverage and that's been working great. I can see it generate the luacov.stats.out and then I can run luacov which then generates me the report. this is working because in my nix dev shell I've got (luajit.withPackages (ps: with ps; [ luacov ])) which installs it so it's accessible globally.

but lux installs this into .lux already is there a way to run stuff out of these dirs? such as test_dependacies

e.g if I also wanted to install something like https://github.com/daurnimator/luacov-reporter-lcov or https://github.com/spacewander/luacov-console as test deps, would I be able to run this via some lux command I just cant find?

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions