From 5f0a6b7079b286004475f30894824c6659ee2d1b Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 3 Jan 2026 14:43:04 +0000 Subject: [PATCH 1/2] fix(tests): enable automation test discovery in pytest MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The pytest configuration was excluding all "scripts" directories from test discovery, which prevented 108 automation tests in tests/unit/automation/scripts/ from running in CI. Changes: - Updated norecursedirs to specifically exclude .github/scripts instead of all "scripts" directories - This allows test discovery in tests/unit/automation/scripts/ Impact: - Automation tests now run in CI (+108 tests) - Automation coverage increased from 0% to 61% - Total test count: 492 → 600 All 108 automation tests pass successfully. --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index b35e9b5df2..53dd18d670 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -151,7 +151,7 @@ asyncio_mode = "auto" testpaths = ["tests"] norecursedirs = [ "docs", - "scripts", + ".github/scripts", ".git", ".venv", "__pycache__", From 54bf906819afe48b9a4c7b9d4efb7a48aa369161 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 3 Jan 2026 15:32:24 +0000 Subject: [PATCH 2/2] refactor(tests): simplify pytest norecursedirs to minimal config Removed redundant entries from norecursedirs that pytest already handles automatically: - .github/scripts (doesn't exist + auto-excluded by dotted pattern) - .git (auto-excluded) - .venv (auto-excluded) - __pycache__ (auto-excluded) Kept only: - docs (non-dotted directory to skip) - temp (temporary files directory) Benefits: - Cleaner, more maintainable configuration - Relies on pytest's sensible defaults - Still excludes all necessary directories All 619 tests still discovered and running correctly. --- pyproject.toml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 53dd18d670..8a81d4fa68 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -151,10 +151,6 @@ asyncio_mode = "auto" testpaths = ["tests"] norecursedirs = [ "docs", - ".github/scripts", - ".git", - ".venv", - "__pycache__", "temp", ] addopts = [