From 8f32e4171906ad2f4a05063a8d97eb7b07b542c0 Mon Sep 17 00:00:00 2001 From: Victor Skvortsov Date: Mon, 3 Aug 2026 15:55:53 +0500 Subject: [PATCH] Tell agents to scope test runs and use -n auto --- AGENTS.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index fbbf11e7c..baf4a8d6e 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -35,6 +35,8 @@ Before touching a subsystem, read the relevant notes in `contributing/`: `ARCHIT ## Testing Guidelines - Default to `uv run pytest`. Use markers from `tests/conftest.py` like `--runpostgres` if need to include specific tests. +- Scope the run to the change: for trivial or localized edits, run only the affected test modules, `Test*` classes, or `-k` selection instead of the whole suite. Reserve the full suite for broad or cross-cutting changes. +- Speed up large runs with `-n auto` (pytest-xdist), e.g. `uv run pytest -n auto`. - Group tests for the same unit (function/class) using `Test*` classes that mirror unit's name. - Keep tests hermetic (network disabled except localhost per `pytest.ini`); stub cloud calls with mocks.