Tests
luastra.json · schema v2tests[]
Select declared test modules.
When to use it
Use this when adding a test file and registering it for luastra test without including it in the production entry closure.
- Merge this module into the existing modules array; the fragment is not a complete manifest.
- tests defaults to empty. It accepts up to 64 unique declared module IDs, not paths. The application entry cannot also be a test entry.
- Keep test modules out of the production dependency closure to avoid shipping them.
Focused example
{
"modules": [
{
"id": "app/tests/smoke",
"source": "tests/smoke.luau",
"dependencies": [
"app/main"
]
}
],
"tests": [
"app/tests/smoke"
]
}