reductstore/reduct-cli/fix-tests
Claude Code and agent skill by reductstore/reduct-cli
- community
Checking that the SKILL.md file is still in the repository.
Fix Rust test failures and compilation errors. Use when tests do not compile, warnings break CI, or unit/integration tests fail (especially when a ReductStore container must be running). Includes guidance to run tests, start ReductStore via Docker, improve assertions, and reduce test duplication.
Install
npx vskill@latest install reductstore/reduct-cli/fix-testsSKILL.md
Fix Tests
Overview
Fix compilation errors, warnings, and failing tests in Rust repos, including integration tests that require a running ReductStore instance.
Workflow
1. Establish baseline
- Run
cargo testfirst to capture compile errors, warnings, and failing tests. - If tests are integration-heavy or flaky, re-run with
-- --test-threads=1to reduce concurrency.
2. Fix compilation errors and warnings
- Address compiler errors first; they block everything else.
- Remove unused imports, fix type mismatches, and update signatures.
- Re-run
cargo testor a focused test module to confirm the compile fix.
3. Start ReductStore when tests need it
If failures show connection errors to localhost:8383 or ReductStore endpoints:
- Use CI as the source of truth for how to run the service.
- Start a local container (examples mirror CI):
docker run --network=host -v ${PWD}/misc:/misc --env RS_API_TOKEN=TOKEN -d reduct/store:latestdocker run --network=host -v ${PWD}/misc:/misc --env RS_API_TOKEN=TOKEN -d reduct/store:main- Run tests with the token set:
RS_API_TOKEN=TOKEN cargo test -- --test-threads=1
4. Fix failing tests
- Update test logic to match current behavior or expected outputs.
- Prefer small, deterministic fixtures. Avoid network or timing dependencies where possible.
- Re-run the smallest relevant test(s) before full suite.
5. Improve test readability
- Reduce duplication by extracting helper functions/fixtures inside
#[cfg(test)]modules. - Add assertion messages that explain intent and expected values.
- Keep tests short and focused on a single behavior.
6. Verify and report
- Re-run full test suite (or CI-equivalent subset) and confirm passes.
- Always validate against both
reduct/store:latestandreduct/store:mainafter changes: docker run --network=host -v ${PWD}/misc:/misc --env RS_API_TOKEN=TOKEN -d reduct/store:latestRS_API_TOKEN=TOKEN cargo test -- --test-threads=1- Stop/remove the container, then repeat for
reduct/store:main. - Summarize changes and note any remaining gaps (e.g., requires running container).
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 repositoryChecking.kilo/skills/fix-tests/SKILL.md
Popularity
- Repository stars
- 6
- Repository forks
- 7
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- 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/reductstore/reduct-cli/fix-tests)