trimtest.toml
trimtest init writes a commented trimtest.toml. All keys are optional, unknown keys are errors, and top-level
keys must come before the first [table]. Validate with trimtest check; errors name the file and the key.
A JSON Schema is published at /schema/trimtest.schema.json. For editors with the
Even Better TOML extension, add #:schema https://trimtest.dev/schema/trimtest.schema.json as the first
line of the file.
| Key | Meaning |
|---|---|
ignore = [globs] |
files that are never tracked |
tests = [globs] |
extra files that are tests |
import_roots = [dirs] |
extra Python import roots |
respect_gitignore = false |
also track gitignored files |
on_unobserved = "full" |
what to do with a changed file no test is known to reach: "warn" (the default) lists it and runs only the selected tests, "full" runs everything |
timeout = secs |
kill a runner command that runs longer (and its descendants); its tests count as failed. run --timeout overrides; 0 = no limit |
total_timeout = secs |
stop the whole run after this long: the running command is killed (with its descendants), the rest are not started, and their tests count as failed. run --total-timeout overrides; 0 = no limit |
max_depth = n |
how deep project markers are searched (default 6) |
[full_run] extra = [globs] |
files that force a full run |
[map] "api/**" = ["web/e2e/**"] |
changed glob → test globs (suites with no import link) |
[runner] python = "uv run" |
command prefix per runner (python, js, jest, vitest, playwright, sql, …); detected from lockfiles otherwise |
[[project]] kind = "python", dir = "svc" |
force a project the markers cannot find |
Example
Section titled “Example”#:schema https://trimtest.dev/schema/trimtest.schema.jsonignore = ["vendor/**", "examples/**"]on_unobserved = "full"timeout = 600total_timeout = 1800
[full_run]extra = ["config/*.yml"]
[map]"api/**" = ["web/e2e/**"]
[runner]python = "uv run"- A project nested under another is its own project unless it is a workspace member of it; see Monorepos.
- Globs are validated when the config loads.