Jiva test-writing
install
source · Clone the upstream repo
git clone https://github.com/KarmaloopAI/Jiva
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/KarmaloopAI/Jiva "$T" && mkdir -p ~/.claude/skills && cp -r "$T/examples/personas/tester/skills/test-writing" ~/.claude/skills/karmaloopai-jiva-test-writing && rm -rf "$T"
manifest:
examples/personas/tester/skills/test-writing/SKILL.mdsource content
Test Writing Skill
Overview
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
: To read code being testedview
: To create new test filescreate_file
: To execute test suitesrun_terminal_command
: To find existing testsgrep_search
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