Configuration
Preview
Testing and the related agent skills are a preview feature. Details may change as we refine them.
Sol and Luna are configured with an optional idltest.json file. Create it with the IDL: Initialize Test Config command or ask an agent. The extension provides a JSON schema, so you get hover help, validation, and auto-complete when editing it.
The file is only read, never written, and every option is optional. Paths are relative to the file and support *, ?, and **. These are the options and their defaults:
json
{
"include": ["src/**/*.spec.pro"],
"exclude": [],
"source": { "include": ["src/**/*.pro"], "exclude": ["**/*.spec.pro"] },
"run": { "isolation": "process", "stopOnFailure": false },
"coverage": { "enabled": true, "profile": false },
"output": { "level": "normal", "log": "idltest.log" },
"debug": false
}| Option | Description |
|---|---|
include, exclude | Test files to run |
source.include, source.exclude | Code that Luna checks for syntax errors and code coverage. Exclude your spec files |
run.isolation | process uses a new IDL process for each test file, shared reuses one |
run.stopOnFailure | Stop after the first failing test file |
coverage.enabled, coverage.profile | Track code coverage, and optionally collect IDL profiler statistics |
output.level | quiet, normal, or verbose |
output.log | Summary file written by Sol |
debug | Stop on errors and keep child process output in sol.log and luna.log |
luna() finds the closest idltest.json automatically, checking the spec's folder and each parent. Use luna(config_file = 'path\idltest.json') to override it.
Related files
idlformat.jsoncontrols code formatting and style, see Formatting Configuration. It replacesidl.json, which still works but is deprecatedidlpackage.jsondescribes your package. Use theIDL: Initialize Package Configcommand or an agent to generate it