Create thorough test coverage for software components.
Workflow
Analyze Code: Understand what needs testing
Identify Test Cases:
Happy path scenarios
Edge cases
Error conditions
Boundary values
Write Tests: Create test files following project conventions
Verify: Run tests to ensure they pass
Document: Add test descriptions
Test Types
Unit Tests
Test individual functions/methods
Mock dependencies
Fast execution
High coverage
Integration Tests
Test component interactions
Real dependencies when possible
Test data flow
API contracts
End-to-End Tests
Test complete user workflows
Real environment
Critical paths
User scenarios
Test Quality Standards
Clear test names describing what is tested
Arrange-Act-Assert pattern
One assertion per test (generally)
Independent tests (no shared state)
Fast and reliable
Tools
view: To read code being tested
create_file: To create new test files
run_terminal_command: To execute test suites
grep_search: To find existing tests
Best Practices
Test behavior, not implementation
Cover edge cases thoroughly
Keep tests maintainable
Use descriptive test names
Don't test framework code
Mock external dependencies
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: karmaloopai-jiva-test-writing3description: Test Writing Skill4---56# Test Writing Skill78## Overview9Create thorough test coverage for software components.1011## Workflow12131. **Analyze Code**: Understand what needs testing142. **Identify Test Cases**:15 - Happy path scenarios16 - Edge cases17 - Error conditions18 - Boundary values193. **Write Tests**: Create test files following project conventions204. **Verify**: Run tests to ensure they pass215. **Document**: Add test descriptions2223## Test Types2425### Unit Tests26- Test individual functions/methods27- Mock dependencies28- Fast execution29- High coverage3031### Integration Tests32- Test component interactions33- Real dependencies when possible34- Test data flow35- API contracts3637### End-to-End Tests38- Test complete user workflows39- Real environment40- Critical paths41- User scenarios4243## Test Quality Standards4445- Clear test names describing what is tested46- Arrange-Act-Assert pattern47- One assertion per test (generally)48- Independent tests (no shared state)49- Fast and reliable5051## Tools5253- `view`: To read code being tested54- `create_file`: To create new test files55- `run_terminal_command`: To execute test suites56- `grep_search`: To find existing tests5758## Best Practices5960- Test behavior, not implementation61- Cover edge cases thoroughly62- Keep tests maintainable63- Use descriptive test names64- Don't test framework code65- Mock external dependencies6667---68> Converted and distributed by [TomeVault](https://tomevault.io/claim/karmaloopai) — claim your Tome and manage your conversions.69<!-- tomevault:4.0:skill_md:2026-04-11 -->
Run npx skillmds@latest add tomevault-io/karmaloopai-jiva-test-writing in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Test Writing Skill It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.