Pytest Options
Pass these to pytest (or set in pytest.ini / pyproject.toml under addopts).
| Option | Description |
|---|---|
--dagz | Enable DAGZ test selection and coverage collection. |
--dagz-exclude-redundant | Apply test selection - exclude redundant tests. |
--dagz-workers N | Number of parallel worker processes. The default is calculated automatically based on your hardware configuration. |
--dagz-tiny-tests | Batch test results for projects with many short tests. |
--dagz-baseline REF | Use a specific baseline (jMMDD.N or a uuid). |
--dagz-no-baseline | Run without loading any baseline. |
--dagz-rerun-failed JOBS | Rerun tests that failed in the given jobs. |
--dagz-capture=0/1 | Override default settings for capturing stdout+stderr. |
--dagz-offline | Run without contacting any DAGZ server. |
--dagz-debug | Run with full debug logs on the console. |
--dagz-debug-1 | Run with full debug logs and a single worker. |
--dagz-trace | Run in trace mode with maximum verbosity. |
--dagz-web-tunnel | Tunnel worker traffic through the web port (TLS). Use when only the web port is reachable. |
--dagz-collect-fixup | Workaround for pytest #12083 (collection fails when mixing file paths and directories). |
--dagz-disable-sensors | Disable DAGZ instrumentation and integration hooks; run as plain pytest. Also --dagz-no-sensors. |
--dagz-allow-any-os | Bypass the Linux-only platform check. Unsupported, may not work correctly. |