.claude/skills/qe-test-generation/SKILL.md
Generates unit, integration, and e2e tests from code analysis including branch coverage, error paths, and edge cases. Use when creating tests for new or changed code, filling coverage gaps, or migrating test suites between Jest, Vitest, and Playwright.
npx skillsauth add proffesor-for-testing/agentic-qe qe-test-generationInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Guide the use of v3's AI-powered test generation capabilities including pattern-based test synthesis, multi-framework support, and intelligent test case derivation from code analysis.
# Generate unit tests for a file
aqe test generate --file src/services/UserService.ts --framework jest
# Generate tests with coverage target
aqe test generate --scope src/api/ --coverage 90 --type unit
# Generate integration tests
aqe test generate --file src/controllers/AuthController.ts --type integration
# Generate from patterns
aqe test generate --pattern repository --target src/repositories/
// Spawn test generation agents
Task("Generate unit tests", `
Analyze src/services/PaymentService.ts and generate comprehensive Jest tests.
Include:
- Happy path tests for all public methods
- Edge cases and boundary conditions
- Error handling scenarios
- Mock external dependencies
Output to tests/unit/services/PaymentService.test.ts
`, "qe-test-generator")
// Pattern-based generation
Task("Apply test patterns", `
Scan src/repositories/ and apply repository test pattern:
- CRUD operation tests
- Query builder tests
- Transaction tests
- Connection error handling
`, "qe-pattern-matcher")
await testGenerator.analyzeAndGenerate({
source: 'src/services/OrderService.ts',
analysis: {
methods: true,
branches: true,
dependencies: true,
errorPaths: true
},
output: {
framework: 'jest',
style: 'describe-it',
assertions: 'expect'
}
});
await testGenerator.applyPattern({
pattern: 'service-layer',
targets: ['src/services/*.ts'],
customizations: {
mockStrategy: 'jest.mock',
asyncHandling: 'async-await',
errorAssertion: 'toThrow'
}
});
await testGenerator.fillCoverageGaps({
coverageReport: 'coverage/lcov.info',
targetCoverage: 90,
prioritize: ['uncovered-branches', 'error-paths'],
maxTests: 50
});
| Framework | Unit | Integration | E2E | Mocking | |-----------|------|-------------|-----|---------| | Jest | ✅ | ✅ | ⚠️ | jest.mock | | Vitest | ✅ | ✅ | ⚠️ | vi.mock | | Mocha | ✅ | ✅ | ❌ | sinon | | Pytest | ✅ | ✅ | ❌ | pytest-mock | | JUnit | ✅ | ✅ | ❌ | Mockito |
quality_checks:
assertions:
minimum_per_test: 1
meaningful: true
isolation:
no_shared_state: true
proper_setup_teardown: true
naming:
descriptive: true
follows_convention: true
coverage:
branches: 80
statements: 85
/mutation-testing to verify test quality/test-automation-strategy to choose framework and patterns/qe-coverage-analysis to find where tests are needed mostaqe health to diagnose, or aqe init to re-initialize if you get "Fleet not initialized"Primary Agents: qe-test-generator, qe-pattern-matcher, qe-test-architect Coordinator: qe-test-generation-coordinator Related Skills: qe-coverage-analysis, qe-test-execution
development
Apply XP practices including pair programming, ensemble programming, continuous integration, and sustainable pace. Use when implementing agile development practices, improving team collaboration, or adopting technical excellence practices.
development
Warehouse Management System testing patterns for inventory operations, pick/pack/ship workflows, wave management, EDI X12/EDIFACT compliance, RF/barcode scanning, and WMS-ERP integration. Use when testing WMS platforms (Blue Yonder, Manhattan, SAP EWM).
testing
Advanced visual regression testing with pixel-perfect comparison, AI-powered diff analysis, responsive design validation, and cross-browser visual consistency. Use when detecting UI regressions, validating designs, or ensuring visual consistency.
development
Comprehensive truth scoring, code quality verification, and automatic rollback system with 0.95 accuracy threshold for ensuring high-quality agent outputs and codebase reliability.