ovh/shai/testing
Claude Code and agent skill by ovh/shai
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Write and run tests, ensure adequate test coverage, and fix failing tests
Install
npx vskill@latest install ovh/shai/testingSKILL.md
Testing
Purpose
Create, run, and maintain tests for the SHAI project. Ensure new code is tested and existing tests pass.
Running Tests
Test Conventions
Structure
- Place unit tests in
#[cfg(test)] mod testsat the bottom of the file they test. - Place integration tests in the
tests/directory. - Name tests descriptively:
test_<what>_<condition>(e.g.,test_strip_frontmatter_with_metadata).
Coverage Checklist
When writing or reviewing tests, ensure coverage for:
- Happy path: Normal expected behavior.
- Edge cases: Empty input, boundary values, single-element collections.
- Error cases: Invalid input, missing files, permission errors.
- Integration: Interactions between modules.
Mocking
- Use
mockitoor similar for HTTP mocking when needed. - Use
tempfile::TempDirfor filesystem tests. - Avoid testing implementation details — test behavior, not internals.
Writing Good Tests
Guidelines
- Each test should verify one behavior.
- Test names should read like a specification:
test_<subject>_<expected_behavior>. - Prefer many small focused tests over one large test.
- Use
assert!for boolean conditions,assert_eq!for equality. - Always clean up resources (use
TempDirorDropimplementations). - If a test is flaky, fix it — don't disable it without a tracking issue.
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 repositoryCheckingshai-core/examples/skills/testing/SKILL.md
Popularity
- 7-day trend score
- 0
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/ovh/shai/testing)