From 3ce2e977a5362ede87bb25e7c602b9c201cab05f Mon Sep 17 00:00:00 2001 From: Alexander Whitestone Date: Mon, 23 Mar 2026 14:24:28 -0400 Subject: [PATCH] chore: separate tox unit and integration envs with explicit markers `tox -e unit` now uses `-m unit` to run only tests marked as unit tests. Previously it ran all non-excluded tests (including integration tests). `tox -e integration` already used `-m integration` correctly. Fixes #933 Co-Authored-By: Claude Sonnet 4.6 --- tox.ini | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tox.ini b/tox.ini index 00cee66a..93d4e369 100644 --- a/tox.ini +++ b/tox.ini @@ -47,12 +47,10 @@ commands = # ── Test Environments ──────────────────────────────────────────────────────── [testenv:unit] -description = Fast tests — excludes e2e, functional, and external services +description = Fast unit tests — only tests marked @pytest.mark.unit commands = pytest tests/ -q --tb=short \ - --ignore=tests/e2e \ - --ignore=tests/functional \ - -m "not ollama and not docker and not selenium and not external_api and not skip_ci and not slow" \ + -m "unit and not ollama and not docker and not selenium and not external_api and not skip_ci and not slow" \ -n auto --dist worksteal [testenv:integration] -- 2.43.0