modootoday/marketplace/test-fixture-and-mock-build
Claude Code and agent skill by modootoday/marketplace
- community
Checking that the SKILL.md file is still in the repository.
Build test support that stays honest - an API mock written from the API definition with its error statuses, pagination and latency, a fixture that takes and releases a port and proves recovery, and a test-runtime speedup that keeps every assertion and reports time before and after. Use when a developer asks for a realistic mock, a port-occupying or resource-holding fixture, or faster tests that reload large data. Not for deciding which cases to write, choosing a framework, or load testing a live service.
Install
npx vskill@latest install modootoday/marketplace/test-fixture-and-mock-buildSKILL.md
The same SKILL.md was published earlier as modootoday/marketplace/test-fixture-and-mock-build.
Test fixture and mock build
Practitioners report three recurring chores: a mock that is too happy-path to catch real client bugs, a fixture that occupies a port to provoke an error, and a suite slowed by recomputing large data. Each can quietly weaken the tests, so build them with the checks below.
Steps
- List the inputs given: API definition or schema, the tests, the data, the port or resource, the timings. Anything not given is not assumed; name what you would need.
- Mock from the definition, not from memory. For every operation, cover each documented status (success and every error status listed), the response shape for each, and pagination edges (empty page, last page) and rate-limit or retry headers when the definition names them. Add a latency knob so timeout and retry paths can run. A status the definition does not list is marked as an assumption.
- Port or resource fixture: acquire in setup, release in teardown even when the test fails (try/finally or the framework's finalizer), and bind to a port the OS picks or a stated range so parallel runs do not collide. Add a check after release that the port is free again (a second bind succeeds), because recovery is the point of the fixture.
- Speedup: keep the assertions byte for byte. Remove repeated work (load once per session or module, share read-only; copy or reset anything a test mutates). Say which tests mutate shared data and how isolation is kept. Measure before and after with the same command and report both numbers; an estimate is not a measurement. When nothing has been run, write "not measured", give the command, and do not predict the new runtime in minutes or as a ratio.
- State what the mock or fixture cannot prove (real service behaviour, real network timing) and name one test against the real service or a contract check that would.
Output
The mock (or its table of operation, status, body), the fixture with setup and teardown and the recovery check, the speedup diff with the unchanged-assertions statement, the before and after times (measured, or marked not yet run with the command to run), and the list of assumptions.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/software-qa/skills/test-fixture-and-mock-build/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Grok Build (Cursor)
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/modootoday/marketplace/test-fixture-and-mock-build)