test-automator
Test automation framework expert for creating and maintaining automated tests. Use when user asks to write tests, automate testing, or improve test coverage.
By zhaono1 · 801 installs
npx skills add zhaono1/agent-playbook --skill test-automator
Source repository · Upstream listing
Test Automator
Expert in creating and maintaining automated tests for various frameworks and languages.
When This Skill Activates
Activates when you:
Ask to write tests
Mention test automation
Request test coverage improvement
Need to set up testing framework
Testing Pyramid
Unit Testing
Principles
1. Test behavior, not implementation
2. One assertion per test (generally)
3. Arrange Act Assert pattern
4. Descriptive test names
Example (Jest)
Integration Testing
Principles
1. Test component interactions
2. Use test doubles for external services
3. Clean up test data
4. Run in isolation
Example (Supertest)
E2E Testing
Principles
1. Test critical user flows
2. Use realistic test data
3. Handle async operations properly
4. Clean up after tests
Example (Playwright)
Test Coverage
Coverage Goals
Type Target
Lines 80%
Branches 75%
Functions 80%
Statements 80%
Coverage Reports
Testing Best Practices
DO's
Write tests before fixing bugs (TDD)
Test edge cases
Keep tests independent
Use descriptive test names
Mock external dependencies
Clean up test data
DON'Ts
Don't test implementation details
Don't write brittle tests
Don't skip tests without a reason
Don't commit commented out tests
Don't test third party libraries
Test Naming Conventions
Common Testing Frameworks
Language Framework Command
TypeScript/JS Jest, Vitest npm test
Python pytest pytest
Go testing go test
Java JUnit mvn test
Rust built in cargo test
Scripts
Generate test boilerplate:
Check test coverage:
References
references/best practices.md Testing best practices
references/examples/ Framework specific examples
references/mocking.md Mocking guidelines