tester
Org role guidance for a tester: build confidence code works with the right mix of unit, integration and end-to-end tests aimed at real risk. Covers the test pyramid, edge cases, Arrange-Act-Assert, mocking dependencies and bug-reproducing tests.
- License 许可
- Apache-2.0
- 所属仓库
- monoes/monomind
- 最近更新
- 2026-11-14
- Stars
- ★ 23
- Forks
- 2
01 前言 Front Matter
- name
- tester
- tags
- [ "engineering", "testing", "coding-standards" ]
- tools
- [ "monograph_query", "monograph_context", "monograph_impact" ]
- source
- https://github.com/monoes/monomind
- license
- Apache-2.0
- description
- Org role guidance for a tester: build confidence code works with the right mix of unit, integration and end-to-end tests aimed at real risk. Covers the test pyramid, edge cases, Arrange-Act-Assert, mocking dependencies and bug-reproducing tests.
03 SKILL.md 正文
Tester — Best Practices
Focus
Builds confidence that code works — through the right mix of unit, integration, and end-to-end tests targeting real risk, not just coverage numbers.
Best practices
- Follow the test pyramid: many fast unit tests, fewer integration tests, a handful of high-value E2E tests.
- Write tests that are fast, isolated, repeatable, and self-validating (clear pass/fail, no shared state between tests).
- Cover edge cases deliberately: empty/null inputs, boundary values, concurrent operations, timeouts and failure paths.
- Structure tests with Arrange-Act-Assert and one clear behavior asserted per test.
- Mock external dependencies (network, DB, time) so tests stay deterministic and fast.
- Reproduce bugs with a failing test before fixing them — the test is proof the fix actually worked.
- Validate non-functional requirements too: basic performance (does this stay under budget?) and security (injection, XSS) where relevant.
- Give tests descriptive names that state the scenario and expected outcome.
Common pitfalls
- Chasing coverage percentage instead of testing the paths that actually carry risk.
- Writing brittle tests coupled to implementation details that break on harmless refactors.
- Testing only the happy path and skipping error/edge cases.
- Interdependent tests that pass or fail based on execution order.
- Slow test suites that get skipped or ignored because they take too long to run locally.
Tools & techniques
- Use test data builders/factories instead of hand-rolled fixtures scattered across files.
- Force determinism: fake timers, seeded random, mocked network responses.
- Check coverage as a diagnostic (what's untested?), not a target to hit for its own sake.
- For regressions, always add the reproducing test to the suite so it can't silently return.
04 同仓库更多 Skills
isms-audit-expert
Use when planning or running an ISO 27001 ISMS audit: risk-based audit schedules, Annex A control assessment, Statement of Applicability and nonconformities. Auditor-side procedures, versus compliance-auditor, which is org role guidance across SOC 2, HIPAA and PCI-DSS.
instrument-data-to-allotrope
Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV. Use this skill when scientists need to standardize instrument data for LIMS systems, data lakes, or downstream analysis. Supports auto-detection of instrument types. Outputs include full ASM JSON, flattened CSV for easy import, and exportable Python code for data engineers. Common triggers include converting instrument files, standardizing lab data, preparing data for upload to LIMS/ELN systems, or generating parser code for production pipelines.
experiment-designer
Use when planning a product A/B or multivariate test: If/Then/Because hypotheses, primary and guardrail metrics, sample size and MDE, ICE prioritization. For logging and reproducing ML runs use experiment-tracker; for scientific study design use experimental-design.
digest
Generate a daily or weekly digest of activity across all connected sources. Use when catching up after time away, starting the day and wanting a summary of mentions and action items, or reviewing a week's decisions and document updates grouped by project.
design-critique
Get structured design feedback on usability, hierarchy, and consistency. Trigger with "review this design", "critique this mockup", "what do you think of this screen?", or when sharing a Figma link or screenshot for feedback at any stage from exploration to final polish.
deployment-pipeline-design
Use when architecting a multi-stage CI/CD pipeline with approval gates, SAST and DAST scans, environment promotion, canary rollout and automated rollback. Design-level; for concrete Dockerfile and health check patterns use deployment-patterns.