/sdlc:testingfrom sdlc
Provides testing standards and organization guidance including unit, integration, e2e tests, coverage requirements, and regression test patterns across multiple languages.
Ships in sdlc. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Guidance for implementing comprehensive testing that meets SDLC requirements.
Available Tools: If using Claude Code, the
pr-review-toolkit:pr-test-analyzeragent reviews test coverage and identifies gaps. Use after creating PRs to ensure adequate test coverage.
Projects MUST maintain these test categories:
| Category | Location | Purpose |
|---|---|---|
| Unit tests | Alongside source code | Test individual functions/methods |
| Integration tests | Dedicated test directory | Test component interactions |
| Documentation tests | Within doc comments | Verify examples work |
| End-to-end tests | Dedicated e2e directory | Test full system behavior |
Test files MUST be clearly identifiable by naming convention:
| Language | Unit Tests | Integration Tests |
|---|---|---|
| Rust | mod tests in source | tests/ directory |
| TypeScript | *.test.ts, *.spec.ts | tests/integration/ |
| Python | test_*.py, *_test.py | tests/integration/ |
| Java | *Test.java | *IntegrationTest.java |
| Go | *_test.go | *_integration_test.go |
| Requirement | Level |
|---|---|
| New functionality | MUST include tests |
| Bug fixes | MUST include regression tests |
| Coverage measurement | MUST be tracked |
| Minimum coverage | SHOULD target 80% |
| Critical paths | MUST have 95%+ coverage |
| Coverage reports | MUST be uploaded to tracking service |
Bug fixes MUST include regression tests that:
#[test]
fn test_issue_123_null_pointer_on_empty_input() {
// Regression test for issue #123
// Previously caused null pointer when input was empty
let result = process_input("");
assert!(result.is_ok());
}
Critical paths requiring 95%+ coverage:
| Test Type | Target Duration |
|---|---|
| Unit tests | < 1 second each |
| Integration tests | < 30 seconds each |
| Full test suite | < 10 minutes |
Flaky tests (tests that sometimes pass, sometimes fail) MUST be:
Tests MUST follow the AAA pattern:
test("should calculate total with discount", () => {
// Arrange
const cart = new ShoppingCart();
cart.addItem({ price: 100, quantity: 2 });
const discount = 0.1;
// Act
const total = cart.calculateTotal(discount);
// Assert
expect(total).toBe(180);
});
Test names MUST clearly describe what is being tested:
Good:
test_user_creation_with_valid_email_succeeds
test_login_with_invalid_password_returns_401
test_empty_cart_returns_zero_total
Bad:
test1
testUser
test_it_works
Tests MUST cover:
| Category | Examples |
|---|---|
| Empty inputs | Empty strings, empty arrays, null/None |
| Boundary values | 0, -1, MAX_INT, empty, single item |
| Invalid inputs | Wrong types, malformed data |
| Concurrent access | Race conditions, deadlocks |
| Resource limits | Large inputs, memory constraints |
# Run all tests
make test
# Check coverage
make coverage
# Verify no flaky tests (run multiple times)
for i in {1..5}; do make test || exit 1; done
# Check critical path coverage (language-specific)
coverage report --include="src/auth/*,src/security/*" --fail-under=95
references/test-patterns.md - Common test patterns and anti-patternsreferences/coverage-config.md - Coverage tool configurationexamples/rust-test-setup.md - Rust test organizationexamples/typescript-jest.config.js - Jest configurationexamples/python-pytest.ini - Pytest configurationWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
TypeScript, Python, Rust, Go, Java
Generated from the plugin's indexed repository (zircote-plugins/sdlc-quality) — no native marketplace selected
npx claudepluginhub p/zircote-sdlc10 skills in this plugin
/aiThis skill should be used when the user asks about "AI development", "AI coding", "AI assistant", "CLAUDE.md", "AI context", "AI guidelines", "code generation", "AI workflow", "AI review", "AI configuration", or needs guidance on configuring AI assistants and AI-assisted development workflows./ciThis skill should be used when the user asks about "CI pipeline", "continuous integration", "GitHub Actions", "CI configuration", "CI jobs", "workflow", "CI caching", "CI environment", "pipeline structure", or needs guidance on setting up or configuring CI/CD pipelines./docsThis skill should be used when the user asks about "documentation", "README", "CHANGELOG", "CONTRIBUTING", "ADR", "architecture decision record", "changelog format", "keep a changelog", "doc comments", "API documentation", or needs guidance on project documentation requirements./observabilityThis skill should be used when the user asks about "observability", "logging", "metrics", "tracing", "monitoring", "structured logging", "log format", "log levels", "distributed tracing", "OpenTelemetry", "health checks", or needs guidance on implementing observability and monitoring requirements./qualityThis skill should be used when the user asks about "code quality", "formatting", "linting", "lint rules", "code style", "error handling", "unsafe code", "documentation comments", "doc comments", "rustfmt", "prettier", "eslint", "clippy", or needs guidance on code quality enforcement and configuration./releaseThis skill should be used when the user asks about "release process", "versioning", "semantic versioning", "semver", "release automation", "publishing", "package publishing", "release checklist", "version bump", "release notes", or needs guidance on release workflows and version management.Other plugins' skills for the same job