Skip to main content

Pytest Options

Pass these to pytest (or set in pytest.ini / pyproject.toml under addopts).

OptionDescription
--dagzEnable DAGZ test selection and coverage collection.
--dagz-exclude-redundantApply test selection - exclude redundant tests.
--dagz-workers NNumber of parallel worker processes. The default is calculated automatically based on your hardware configuration.
--dagz-tiny-testsBatch test results for projects with many short tests.
--dagz-baseline REFUse a specific baseline (jMMDD.N or a uuid).
--dagz-no-baselineRun without loading any baseline.
--dagz-rerun-failed JOBSRerun tests that failed in the given jobs.
--dagz-capture=0/1Override default settings for capturing stdout+stderr.
--dagz-offlineRun without contacting any DAGZ server.
--dagz-debugRun with full debug logs on the console.
--dagz-debug-1Run with full debug logs and a single worker.
--dagz-traceRun in trace mode with maximum verbosity.
--dagz-web-tunnelTunnel worker traffic through the web port (TLS). Use when only the web port is reachable.
--dagz-collect-fixupWorkaround for pytest #12083 (collection fails when mixing file paths and directories).
--dagz-disable-sensorsDisable DAGZ instrumentation and integration hooks; run as plain pytest. Also --dagz-no-sensors.
--dagz-allow-any-osBypass the Linux-only platform check. Unsupported, may not work correctly.