Skip to content

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
}
OptionDescription
include, excludeTest files to run
source.include, source.excludeCode that Luna checks for syntax errors and code coverage. Exclude your spec files
run.isolationprocess uses a new IDL process for each test file, shared reuses one
run.stopOnFailureStop after the first failing test file
coverage.enabled, coverage.profileTrack code coverage, and optionally collect IDL profiler statistics
output.levelquiet, normal, or verbose
output.logSummary file written by Sol
debugStop 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.

  • idlformat.json controls code formatting and style, see Formatting Configuration. It replaces idl.json, which still works but is deprecated
  • idlpackage.json describes your package. Use the IDL: Initialize Package Config command or an agent to generate it

Licensed under MIT.