Filtering

Browse docs

Filtering tests is useful to restrict running tests to whatever is relevant to your current changes.

That is why lde allows you to filter with glob semantics for file paths.

Single Filter

You can either pass a glob:

lde test "*auth*"

Or a specific file path:

lde test "./tests/unit/auth.test.lua"

Multiple Filters

Multiple filters combine with OR semantics. A file is run if it matches any of them:

lde test "*auth*" "unit/*"
lde test ./tests/unit/auth.test.lua
lde test "./tests/unit/*"