docs: correct stale test counts in PR #9

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) <noreply@anthropic.com>
This commit is contained in:
Hongming Wang 2026-04-13 17:51:12 -07:00
parent 5429880b67
commit fd2c3fbfc4
4 changed files with 14 additions and 12 deletions

View File

@ -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)
```

View File

@ -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.

View File

@ -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)
```

View File

@ -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)