# Testing responsibilities and evidence Read only for the selected testing skill. Inspect actual stack/manifests, installed tools, project decisions and relevant existing test configuration first. Do not select or install a second testing framework by habit. Native skills guide the main conversation; none grants tools, installs runners or guarantees model behavior. | Skill | Question answered | Boundary | |---|---|---| | unit-testing | Does one isolated behavior obey its contract and edge cases? | Local unit behavior with controlled external dependencies | | integration-testing | Do actual components cooperate across the selected boundary? | Real HTTP/provider/database/broker/etc. for the stated scope; explicit fakes elsewhere | | load-testing | Does the system meet agreed behavior/latency/error goals under the specified traffic? | Bounded authorized system workload and observed resources | | performance-testing | What does this path cost, and does a measured change improve it? | Reproducible component/path profiling or baseline comparison; use load-testing for capacity | ## Shared process Use the selected template under .claude/framework/templates/ when a written plan/evidence matrix helps. Keep project-specific artifacts under docs/project/testing//, with unique names for parallel contributors. Do not execute example commands for a different stack or use framework self-tests as application evidence. A testing request authorizes relevant reversible local authoring; installs, image pulls, credentials, destructive setup/cleanup, shared-service traffic and paid capacity still require applicable authorization. Reuse an existing authorized scope rather than asking again. Missing required approval/input blocks dependent execution; plans and local script authoring may continue. Define expected behavior from actual requirements/contracts, not current output alone. Keep tests focused on observable behavior and failure paths rather than reproducing implementation details. Use independent deterministic fixtures; avoid secrets, production data and ambient clocks/randomness. Distinguish application validation omissions from the security/provider constraints that still apply. Actual checks use reviewed commands and existing tooling. `.claude/framework.local.json` is ignored local gate configuration; `framework.py gate` previews commands, `gate --execute` executes them. `review.py run --execute` can capture source-bound evidence when iteration-review applies. These helpers do not infer dependencies, create environments, enforce network/resource boundaries or parse every runner's test count/thresholds. A command exit alone cannot establish meaningful test discovery, the right target, measured throughput or threshold compliance; inspect actual output. Never store credentials in argv/config/fixtures or tracked results. For each run record source revision, relevant tool/dependency versions, scope, environment, exact argv/exit, actual discovered/passed/failed/skipped counts (or workload/sample counts), sanitized raw evidence and gaps. Separate NOT_RUN/BLOCKED/UNVERIFIED from executed PASS/FAIL. Zero tests, skipped cases, empty gates, no baseline and missing observability must remain visible. Confirm cleanup owns only this run's resources and report failures. No changes to shared infrastructure or deletion of another run's fixtures. Use iteration-review for substantial test infrastructure or production-code changes. Test authors and reviewers must not invent runner flags, passing results, external connectivity, coverage percentages or speedups. Existing one-reasoned-retry/two-review-round limits apply; never hide flaky tests or timing failures with repeated retries until green. Update STATE/ROADMAP before the final source-bound evidence snapshot; later edits require revalidation. ## Integration truthfulness State real and fake components explicitly. Mocks, an in-memory provider, a local emulator and a real deployed service establish different coverage. Verify dialect/transaction/migration behavior against the actual selected provider when required. An HTTP test that bypasses auth or routing cannot claim those boundaries passed. Unavailable credentials/dependencies remain blocked instead of silently substituting mocks. Do not connect to a supplied production database schema as a side effect of planning tests. ## Load scope and limits Resolve target/environment ownership, traffic authorization, data side effects, rate/concurrency model, maximum duration/workers/connections, resource/billing budget, thresholds, stop conditions and cleanup before traffic. Ask only for missing material details in small batches. A public URL is not permission to load test it. Do not start production/shared staging traffic or cloud capacity implicitly. Specify open arrival-rate versus closed concurrency deliberately: they schedule work differently. Record requested and achieved load, errors and dropped work, generator utilization and resource limits; a saturated generator cannot establish system capacity. Verify business outcomes as well as status codes. Smoke/stress/spike/soak are explicit bounded workload variants, not permission to keep increasing load. Automated thresholds and abort mechanisms must be supported by the installed runner; never claim an unenforced limit is enforced. If tooling cannot enforce the agreed stop conditions, stop at planning and record the blocker. ## Performance comparisons Define metric/units and comparable baseline/candidate conditions. Use representative dataset size/seed, consistent release/debug mode, hardware/runtime/configuration, measured versus setup work, warm-up, cache/GC assumptions and enough repeated measurements to expose variability. Preserve individual samples and explain the summary statistic; do not average percentile values or treat one noisy sample as a speedup. Profile overhead and benchmark artifacts can distort results. Validate produced results to avoid measuring removed/incorrect work. No baseline means candidate measurement only; local measurements do not prove production capacity, security or monetary savings. CI timing thresholds need a justified stable environment and an agreed budget. ## Reference sources Checked 2026-12-01: [Python unittest](https://docs.python.org/3/library/unittest.html), [.NET unit-test practices](https://learn.microsoft.com/en-us/dotnet/core/testing/unit-testing-best-practices), [k6 thresholds](https://grafana.com/docs/k6/latest/using-k6/thresholds/), [k6 load models](https://grafana.com/docs/k6/latest/using-k6/scenarios/concepts/open-vs-closed/), [Python timeit](https://docs.python.org/3/library/timeit.html). These support general fixture/assertion/workload/measurement concepts; they do not prove a runner is installed or authorize running it. Version-specific syntax must match the actual project and installed versions. No load or benchmark tool was installed/executed while authoring these skills.