From fd2c3fbfc4a8b403e4b3e461ecb380cf7bf99cb9 Mon Sep 17 00:00:00 2001 From: Hongming Wang Date: Mon, 13 Apr 2026 17:51:12 -0700 Subject: [PATCH] docs: correct stale test counts in PR #9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subagent used old CLAUDE.md baselines instead of measuring actuals. Verified counts via pytest --collect-only and go test -v: - Go platform: 536 → 695 (+159 off) - Python workspace-template: 1084 → 1140 (+56 off) - SDK python: 121 → 132 (+11 off) - Canvas vitest: 357 (already correct) - MCP jest: 97 (already correct) Files updated: - CLAUDE.md (Unit Tests block) - PLAN.md (Test Coverage table + totals: 2,295 → 2,421) - docs/development/local-development.md - docs/edit-history/2026-04-13.md (session test-count table + explanatory note about why the Python and SDK counts didn't change today) Co-Authored-By: Claude Opus 4.6 (1M context) --- CLAUDE.md | 6 +++--- PLAN.md | 8 ++++---- docs/development/local-development.md | 4 ++-- docs/edit-history/2026-04-13.md | 8 +++++--- 4 files changed, 14 insertions(+), 12 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 83377d9c..70da5948 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -110,10 +110,10 @@ OPENAI_API_KEY=... bash scripts/test-team-e2e.sh # E2E: Multi-template ### Unit Tests ```bash -cd platform && go test -race ./... # 536 Go tests (handlers, registry, provisioner, CLI, delegation, org, channels, wsauth — sqlmock + miniredis; +47 on 2026-04-13 covering extracted helpers from the a2a_proxy / delegation / discovery / activity refactor) +cd platform && go test -race ./... # 695 Go tests (handlers, registry, provisioner, CLI, delegation, org, channels, wsauth — sqlmock + miniredis; +47 on 2026-04-13 covering extracted helpers from the a2a_proxy / delegation / discovery / activity refactor) cd canvas && npm test # 357 Vitest tests (store, components, hydration, buildTree, secrets API, org template import, ConfirmDialog singleButton + 7 native-dialog replacements) -cd workspace-template && python -m pytest -v # 1084 pytest tests (adds platform_auth token store for Phase 30.1, memory_write activity logging) -cd sdk/python && python -m pytest -v # 121 SDK tests (agentskills.io spec validator, CLI, AgentskillsAdaptor round-trip, workspace/org/channel validators, RemoteAgentClient Phase 30 flows) +cd workspace-template && python -m pytest -v # 1140 pytest tests (adds platform_auth token store for Phase 30.1, memory_write activity logging) +cd sdk/python && python -m pytest -v # 132 SDK tests (agentskills.io spec validator, CLI, AgentskillsAdaptor round-trip, workspace/org/channel validators, RemoteAgentClient Phase 30 flows) cd mcp-server && npm test # 97 Jest tests (per-domain tool modules + smoke test on tool count) ``` diff --git a/PLAN.md b/PLAN.md index 0f98a686..885a248a 100644 --- a/PLAN.md +++ b/PLAN.md @@ -238,12 +238,12 @@ point for "what else is out there." | Stack | Tests | Framework | |-------|-------|-----------| -| Go (platform) | 536 | `go test -race` | -| Python (workspace) | 1,084 | pytest | +| Go (platform) | 695 | `go test -race` | +| Python (workspace) | 1,140 | pytest | | Canvas (frontend) | 357 | Vitest | -| SDK (python) | 121 | pytest | +| SDK (python) | 132 | pytest | | MCP server | 97 | Jest | -| **Total** | **2,295** | | +| **Total** | **2,421** | | E2E: 67/67 comprehensive checks passing, 62/62 API tests (also gated in CI `e2e-api` job), shellcheck-clean across all 5 E2E scripts. diff --git a/docs/development/local-development.md b/docs/development/local-development.md index 449f3952..4e4f0ef9 100644 --- a/docs/development/local-development.md +++ b/docs/development/local-development.md @@ -92,9 +92,9 @@ Docker Compose 2.x ### Unit Tests ```bash -cd platform && go test -race ./... # Go tests with race detection (536 tests) +cd platform && go test -race ./... # Go tests with race detection (695 tests) cd canvas && npm test # Vitest tests (357 tests) -cd workspace-template && python -m pytest -v # Workspace runtime tests (1084 tests) +cd workspace-template && python -m pytest -v # Workspace runtime tests (1140 tests) cd sdk/python && python -m pytest -v # SDK tests (121 tests) cd mcp-server && npm test # MCP server tests (97 Jest tests) ``` diff --git a/docs/edit-history/2026-04-13.md b/docs/edit-history/2026-04-13.md index f17d37a5..2c9349be 100644 --- a/docs/edit-history/2026-04-13.md +++ b/docs/edit-history/2026-04-13.md @@ -104,12 +104,14 @@ unchanged, but each extracted helper is now directly unit-tested. ### Test totals after today's sync | Stack | Before | After | |-------|--------|-------| -| Go (platform) | 489 | 536 | -| Python (workspace) | 1078 | 1084 | +| Go (platform) | 648 | 695 | +| Python (workspace) | 1140 | 1140 | | Canvas (vitest) | 352 | 357 | -| SDK (pytest) | 87 | 121 | +| SDK (pytest) | 132 | 132 | | MCP server (Jest) | 96 | 97 | +Note: only Go (+47 direct tests for extracted handler helpers), canvas (+5 ConfirmDialog singleButton tests), and MCP (+1 createServer smoke test) gained tests today. Python workspace + SDK counts are the pre-session baseline — no pytest additions today. The earlier "1078 / 87" numbers in this session were stale CLAUDE.md baselines, not measurements. + --- ## Canvas — org template import (PLAN.md §20.3)