Loading...
Loading...
Generates test files, creates mocking strategies, analyzes code coverage, designs test architectures, and produces test plans and defect reports across functional, performance, and security testing disciplines. Use when writing unit tests, integration tests, or E2E tests; creating test strategies or automation frameworks; analyzing coverage gaps; performance testing with k6 or Artillery; security testing with OWASP methods; debugging flaky tests; or working on QA, regression, test automation, quality gates, shift-left testing, or test maintenance.
npx skill4agent add farmage/opencode-skills test-master// ✅ Good: meaningful description, specific assertion, isolated dependency
describe('calculateDiscount', () => {
it('applies 10% discount for premium users', () => {
const result = calculateDiscount({ price: 100, userTier: 'premium' });
expect(result).toBe(90); // specific outcome, not just truthy
});
it('throws on negative price', () => {
expect(() => calculateDiscount({ price: -1, userTier: 'standard' }))
.toThrow('Price must be non-negative');
});
});def test_…assert result == expected| Topic | Reference | Load When |
|---|---|---|
| Unit Testing | | Jest, Vitest, pytest patterns |
| Integration | | API testing, Supertest |
| E2E | | E2E strategy, user flows |
| Performance | | k6, load testing |
| Security | | Security test checklist |
| Reports | | Report templates, findings |
| QA Methodology | | Manual testing, quality advocacy, shift-left, continuous testing |
| Automation | | Framework patterns, scaling, maintenance, team enablement |
| TDD Iron Laws | | TDD methodology, test-first development, red-green-refactor |
| Testing Anti-Patterns | | Test review, mock issues, test quality problems |
it('…')expect(result).toBe(90)