cxc-dev-testing
Use for tests and release verification. Triggers: regression test, Playwright, E2E, contract test, coverage, CI flake, TDD, 테스트, 회귀 테스트, 품질 게이트.
- License 许可
- MIT
- 最近更新
- 2026-11-09
- Stars
- ★ 54
- Forks
- 11
01 前言 Front Matter
- name
- cxc-dev-testing
- metadata
- { "keywords": [ "test", "testing", "TDD", "coverage", "regression", "e2e", "playwright", "contract test", "CI" ], "last-verified": "2026-07-02", "short-description": "Testing and QA router: strategy, harness choice, CI gates, TDD, and coverage." }
- description
- Use for tests and release verification. Triggers: regression test, Playwright, E2E, contract test, coverage, CI flake, TDD, 테스트, 회귀 테스트, 품질 게이트.
02 资源文件 22
- 参考文档agents/openai.yaml164 B
- 脚本examples/console_logging.py1.1 KB
- 脚本examples/element_discovery.py1.5 KB
- 脚本examples/static_html_automation.py1.1 KB
- 参考文档references/acceptance-gates.md3.4 KB
- 参考文档references/acceptance-row-reachability.md1.1 KB
- 参考文档references/api-test-patterns.md3.4 KB
- 参考文档references/backend-testing.md4.3 KB
- 参考文档references/browser-testing.md3.5 KB
- 参考文档references/ci-integration.md1.3 KB
- 参考文档references/ci-pipeline.md8.5 KB
- 参考文档references/core/crud-test-matrix.md2.2 KB
- 参考文档references/edge-first-testing.md2.5 KB
- 参考文档references/limited-oracle-evaluation.md2.7 KB
- 参考文档references/load-testing.md6.9 KB
- 参考文档references/ml-evaluation.md7.2 KB
- 参考文档references/patch-integrity.md1.4 KB
- 参考文档references/property-and-mutation-testing.md652 B
- 参考文档references/tdd-and-regressions.md5.4 KB
- 参考文档references/test-oracle-integrity.md2.0 KB
- 参考文档references/test-strategy.md1.5 KB
- 脚本scripts/with_server.py3.6 KB
03 SKILL.md 正文
Testing & QA
Balance: ~40% Backend/API, ~40% Frontend/E2E (Playwright), ~20% Cross-cutting (CI, Security, TDD, Coverage) -- directional guidance, not a hard ratio.
Scope: test harnesses, fixtures, mock policy, runners, Playwright, CI gates, coverage. Root-cause analysis and debugging playbooks → dev-debugging.
- This skill owns test adequacy;
dev-code-reviewerowns finding severity and review process. - CI pipeline ownership and deployment verification: see
dev-devops. - Data pipeline testing and ETL validation: see
dev-data. - Design direction context for rendered verification: see
dev-uiux-design. This skill activates by change-surface when work needs verification depth, regression coverage, or a reproducible test harness.
Class, fast path, rule authority, proof, and safety: dev. Current/public evidence: dev routing.
1.3 Risk-First Priorities
- auth / session / permission boundaries
- money movement, quota, credits
- data mutation and irreversible actions
- file upload / parsing / external webhooks
- shared API contracts used by frontend clients
- error paths, retries, rollback behavior
1.4 Harness Selector
| Problem | Primary Harness | Avoid |
|---|---|---|
| pure business rule | unit / service test | browser test |
| route + middleware + serialization | API integration test | mocking the route itself |
| DB query / migration / transaction | real DB integration test | fake repository for SQL correctness |
| frontend consuming backend JSON | contract test | manual-only verification |
| rendered critical flow | Playwright smoke | asserting internal React state |
Test-oracle rules apply before accepting green: oracle integrity.
Modular References
| Condition | Reference |
|---|---|
| Choose verification depth or test a CRUD slice | core/crud-test-matrix.md |
| Choose model, distribution, fixture policy, or general test rules | test-strategy.md |
| New feature unit/service/integration tests (not regression/contract) | edge-first-testing.md |
| Property/invariant-heavy or mutation testing | property-and-mutation-testing.md |
| Backend/API, database, or contract verification | api-test-patterns.md; backend-testing.md |
| Rendered browser tests or exploratory browser QA | browser-testing.md |
| CI test stages, failures, or flakes | ci-integration.md; ci-pipeline.md |
| ENFORCE_TDD, AI regressions, or test-induced production guards | tdd-and-regressions.md |
| Accessibility, trace/log verification, security, coverage, or pre-flight | acceptance-gates.md |
| Write acceptance criteria | acceptance-row-reachability.md |
| Test expectations, prose seams, override/default/fallback fixtures | test-oracle-integrity.md |
| Implementation completion with test/config changes | patch-integrity.md |
| Scarce, paid, rate-limited, or opaque evaluators | limited-oracle-evaluation.md |
| Performance/load or C3+ production readiness | load-testing.md |
| ML/LLM evaluation or quality gates | ml-evaluation.md |
| Desktop suites and CI matrix | Native desktop acceptance |
04 同仓库更多 Skills
cxc-worktree-guardian
Use for Codex-app worktrees. Triggers: worktree, rename worktree, detached HEAD, ~/.codex/worktrees, 워크트리, 워크트리 이름, 새 워크트리, 브랜치랑 워크트리.
cxc-skill-hub
Deprecated alias. Use cxc-dev.
cxc-search
Use for web/current lookups. Triggers: search, look up, latest, news, prices, docs, status, X/Twitter, deep research, 검색, 검색해, 찾아봐, 찾아줘, 알아봐, 웹검색, 딥리서치, 심층 조사.
cxc-repo-map
Use for repo structure and symbol maps. Triggers: repo map, codebase overview, architecture map, 와꾸.
cxc-remote
Use for Telegram/Discord bridge setup. Triggers: remote, messenger, pairing, tokens, webhooks, 텔레그램 연결, 디스코드 연결, 메신저 연결, 봇 연결, 원격, 페어링.
cxc-recall
Use for past-session context recovery. Triggers: recall, last time, previous session, chat search, memory search, 그때, 지난번, 저번 세션, 예전에 했던, 기억나?, 리콜, 지난 세션, 이전 작업, 뭐였지, 어떻게 했었지.