lux-cli-help-test(1)
π lux-cli-help-test(1) β like, the whole manual, but make it make sense
okay bestie, welcome to the lux-cli-help-test page from the General Commands Manual, and no I'm not gonna make you read it alone π«Ά
β¨ NAME β¨
lux-cli-help-test β run the test suite in the current project directory. that's it, that's the vibe π
Lux supports the following test backends, and you tell it which one you want with the [test] table in the lux.toml. slay, let's meet them:
bustedβ the classic π
https://lunarmodules.github.io/busted/
Example:
[test]
type = "busted"
flags = [ ] # Optional CLI flags to pass to busted
lx test will default to using busted if no test backend is specified and:
- there is a
.bustedfile in the project root - or
bustedis one of thetest_dependencies
busted-nluaβ ngl this one's iconic: it's a build backend for running busted tests with Neovim as the Lua interpreter. used for testing Neovim plugins π§
Example:
[test]
type = "busted-nlua"
flags = [ ] # Optional CLI flags to pass to busted
lx test will default to using busted-nlua if no test backend is specified and:
- there is a
.bustedfile in the project root - or
bustedandnluaaretest_dependencies
commandβ literally just the name/file name of a shell command that will run the test suite π₯
Example:
[test]
type = "command"
command = "make"
flags = [ "test" ]
scriptβ a relative path to a Lua script that will run the test suite πΈ
Example:
[test]
type = "script"
script = "tests.lua" # Expects a tests.lua file in the project root
flags = [ ] # Optional arguments passed to the test script
β SYNOPSIS β
short and sweet, the way we like it:
lux-cli help test
π¦ DESCRIPTION π¦
Run the test suite in the current project directory. (yes, again β it's important π)
Lux supports the following test backends, specified by the [test] table in the lux.toml:
bustedπ
https://lunarmodules.github.io/busted/
Example:
[test]
type = "busted"
flags = [ ] # Optional CLI flags to pass to busted
lx test will default to using busted if no test backend is specified and:
- there is a
.bustedfile in the project root - or
bustedis one of thetest_dependencies
busted-nluaπ
A build backend for running busted tests with Neovim as the Lua interpreter. Used for testing Neovim plugins.
Example:
[test]
type = "busted-nlua"
flags = [ ] # Optional CLI flags to pass to busted
lx test will default to using busted-nlua if no test backend is specified and:
- there is a
.bustedfile in the project root - or
bustedandnluaaretest_dependencies
commandπ
Name/file name of a shell command that will run the test suite.
Example:
[test]
type = "command"
command = "make"
flags = [ "test" ]
scriptπ
Relative path to a Lua script that will run the test suite.
Example:
[test]
type = "script"
script = "tests.lua" # Expects a tests.lua file in the project root
flags = [ ] # Optional arguments passed to the test script
bestie reminder: pick onetypein that[test]table or the vibes get chaotic π
and that's the whole page, no cap π this little cutie lives in the General Commands Manual under the name lux-cli-help-test(1), it says its source is test, and it's part of the lux-cli-help-test(1) manual β so go forth and let your tests slay β¨π
π¦ where this page comes from
- nixpkgs unstable: lux-cli 0.48.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms