/testing-framework:testing-frameworkfrom testing-framework
Routes test-framework selection and infrastructure setup across Rust, TypeScript/React, PHP/TYPO3, and Shell. Scaffolds unit, integration, E2E, and accessibility tests with CI/CD integration.
Ships in testing-framework. 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.
Read when SKILL.md points to them.
Set up test infrastructure, choose frameworks, and author focused test suites across multiple languages. Treat this skill as a router: select the one testing module that matches the codebase, then load only the relevant references/templates.
test-driven-developmentdebuggingcode-reviewThis skill intentionally spans several ecosystems, so avoid loading every module. Pick a lane:
| Need | Use |
|---|---|
| Choose a test stack | Decision tree + references/test-runners.md |
| Add tests to a React/Next.js app | Next.js/React module + Playwright/RTL templates |
| Add tests to Rust code | Rust module + AAA references |
| Add tests to PHP/TYPO3 | TYPO3/PHP module |
| Test shell scripts | ShellSpec/BATS module |
| Improve existing suite quality | scripts/analyze-test-quality.py + anti-pattern references |
If a request needs two or more ecosystems, handle them as separate passes so the output stays practical.
What do you need to test?
│
├─ Rust application
│ └─ cargo test + AAA pattern → templates/rust/
│
├─ Next.js / React application
│ ├─ Component tests → Vitest + React Testing Library → assets/nextjs/
│ ├─ E2E tests → Playwright → templates/e2e/
│ └─ Accessibility → axe-core → references/a11y-testing.md
│
├─ PHP / TYPO3 extension
│ └─ PHPUnit + Playwright E2E → templates/typo3/
│
├─ Shell / Bash scripts
│ ├─ BDD-style → ShellSpec → assets/shellspec/
│ └─ TAP-compliant → BATS → scripts/init_bats_project.sh
│
├─ Existing code needs coverage analysis
│ └─ scripts/analyze-test-quality.py + references/anti-patterns.md
│
└─ CI/CD integration needed
└─ GitHub Actions or GitLab CI → references/ci-cd.md
High-quality Rust unit tests following AAA pattern with deployment confidence.
Key Principles:
test_<function>_<scenario>_<expected_behavior>Quick Start:
#[tokio::test]
async fn test_withdraw_valid_amount_decreases_balance() {
// Arrange
let mut account = Account::new(100);
// Act
let result = account.withdraw(30).await;
// Assert
assert!(result.is_ok());
assert_eq!(account.balance(), 70);
}
Resources:
templates/rust/unit-test.md, templates/rust/async-test.mdreferences/aaa-pattern.md, references/naming-conventions.mdscripts/analyze-test-quality.pyAutomated E2E testing with LLM-powered visual debugging.
Workflow Phases:
Quick Start:
import { test, expect } from '@playwright/test';
test('user creates new entity', async ({ page }) => {
await page.goto('/entities');
await page.getByRole('button', { name: /create/i }).click();
await page.getByLabel(/name/i).fill('New Item');
await page.getByRole('button', { name: /save/i }).click();
await expect(page.getByText('New Item')).toBeVisible();
});
Resources:
assets/e2e-workflow/phase-*.mdtemplates/e2e/playwright.config.template.tsassets/e2e-data/playwright-best-practices.mdComplete testing setup for Next.js with Vitest, RTL, and Playwright.
Setup:
python scripts/generate_test_deps.py --nextjs-version <version> --typescript
Test Patterns:
// Component test with accessibility
import { render, screen } from '@/test/utils/render'
import { axe } from '@axe-core/playwright'
it('has no accessibility violations', async () => {
const { container } = render(<EntityCard entity={mockEntity} />)
const results = await axe(container)
expect(results.violations).toHaveLength(0)
})
Resources:
assets/nextjs/vitest.config.ts, assets/nextjs/playwright.config.tsexamples/nextjs/references/a11y-testing.mdPHPUnit-based testing for TYPO3 extensions with E2E support.
Test Types:
Quick Start:
# Setup
scripts/setup-testing.sh --with-e2e
# Generate test
scripts/generate-test.sh unit UserValidator
scripts/generate-test.sh functional ProductRepository
scripts/generate-test.sh e2e backend-module
Resources:
templates/typo3/references/functional-testing.md, references/mutation-testing.mdscripts/setup-testing.sh, scripts/generate-test.shTesting frameworks for Bash and POSIX shell scripts.
Describe 'Calculator'
Include lib/calculator.sh
It 'performs addition'
When call add 2 3
The output should eq 5
End
End
@test "describe expected behavior" {
run my_command arg1 arg2
assert_success
assert_output --partial "expected substring"
}
Resources:
assets/shellspec/spec_template.shscripts/init_bats_project.shreferences/gotchas.md, references/advanced-patterns.mdValidation tools for testing skills with input/output pair validation.
Test Types:
Quick Start:
# Generate test template
scripts/generate_test_template.py /path/to/skill --output tests.json
# Run tests
scripts/run_tests.py tests.json --skill-path /path/to/skill
# Validate results
scripts/validate_test_results.py actual.txt expected.txt
Resources:
assets/skill-testing/test_template.jsonscripts/run_tests.py, scripts/generate_test_template.pyreferences/test_patterns.md, references/writing_tests.md| Script | Purpose |
|---|---|
scripts/analyze-test-quality.py | Analyze Rust test file quality |
scripts/setup-testing.sh | Set up TYPO3 testing infrastructure |
scripts/generate-test.sh | Generate test class templates |
scripts/validate-setup.sh | Validate testing setup |
scripts/run_tests.py | Run skill test suites |
scripts/generate_test_template.py | Generate test templates |
scripts/validate_test_results.py | Validate test outputs |
scripts/diagnose_test.sh | Diagnose ShellSpec test failures |
scripts/init_bats_project.sh | Initialize BATS project |
scripts/strip_colors.sh | Strip ANSI colors from output |
scripts/generate_test_deps.py | Generate Next.js test dependencies |
references/aaa-pattern.md - Arrange-Act-Assert pattern detailsreferences/naming-conventions.md - Test naming best practicesreferences/test-builders.md - Test builder patternsreferences/anti-patterns.md - Common testing anti-patterns to avoidreferences/writing_tests.md - Best practices for effective testingreferences/test_patterns.md - Examples for different skill typesreferences/unit-testing.md - PHP/TYPO3 unit testingreferences/functional-testing.md - Functional testing with databasereferences/functional-test-patterns.md - Container reset, PHPUnit migrationreferences/async-testing.md - Async test patternsreferences/e2e-testing.md - End-to-end testing guidereferences/javascript-testing.md - JavaScript/TypeScript testingreferences/fuzz-testing.md - Security fuzz testingreferences/mutation-testing.md - Test quality verificationreferences/accessibility-testing.md - axe-core WCAG compliancereferences/a11y-testing.md - Accessibility testing guidelinesreferences/ci-cd.md - GitHub Actions, GitLab CI workflowsreferences/ci-integration.md - CI/CD integration patternsreferences/ci-cd-integration.md - E2E CI/CD examplesreferences/test-runners.md - Test orchestration patternsreferences/quality-tools.md - PHPStan, Rector, php-cs-fixerreferences/sonarcloud.md - SonarCloud integrationreferences/gotchas.md - BATS common pitfallsreferences/assertions.md - BATS assertion referencereferences/advanced-patterns.md - ShellSpec advanced patternsreferences/troubleshooting.md - Debugging test failuresreferences/collected-experience.md - Lessons learnedreferences/real-world-examples.md - Production patternsreferences/projects.md - Real-world project examplestemplates/rust/unit-test.md - Basic unit test templatetemplates/rust/async-test.md - Async test templatetemplates/rust/test-builder.md - Test builder patterntemplates/e2e/playwright.config.template.ts - Playwright configtemplates/e2e/test-spec.template.ts - Test spec templatetemplates/e2e/page-object.template.ts - Page Object Modeltemplates/e2e/global-setup.template.ts - Global setuptemplates/e2e/global-teardown.template.ts - Global teardowntemplates/e2e/screenshot-helper.template.ts - Screenshot utilitiestemplates/typo3/UnitTests.xml - PHPUnit unit configtemplates/typo3/FunctionalTests.xml - PHPUnit functional configtemplates/typo3/FunctionalTestsBootstrap.php - Bootstrap filetemplates/typo3/github-actions-tests.yml - CI workflowtemplates/typo3/Build/playwright/ - Playwright E2E setuptemplates/typo3/example-tests/ - Example test classesexamples/e2e/react-vite/ - React Vite example testsexamples/e2e/reports/ - Example analysis reportsexamples/nextjs/unit-test.ts - Unit test exampleexamples/nextjs/component-test.tsx - Component test exampleexamples/nextjs/e2e-test.ts - E2E test exampleassets/nextjs/vitest.config.ts - Vitest configurationassets/nextjs/playwright.config.ts - Playwright configurationassets/nextjs/test-setup.ts - Test setup fileassets/shellspec/spec_template.sh - ShellSpec test templateassets/skill-testing/test_template.json - Test suite templateassets/e2e-workflow/phase-*.md - Detailed workflow phasesassets/e2e-data/playwright-best-practices.mdassets/e2e-data/accessibility-checks.mdassets/e2e-data/common-ui-bugs.mdassets/rust-checklists/pre-commit.md - Pre-commit checklistassets/rust-checklists/review.md - Code review checklistTests not found:
Tests are slow:
Flaky tests:
Database errors:
E2E failures:
| Resource | Use For |
|---|---|
| Playwright Docs | E2E testing, Page Objects |
| Vitest Docs | Unit testing, configuration |
| Testing Library | React component testing |
| axe-core | Accessibility testing |
| ShellSpec | Shell script BDD testing |
| BATS | Shell script TAP testing |
| PHPUnit | PHP unit testing |
Testing implementation instead of behavior — asserting internal function calls instead of observable outputs.
Oversized test fixtures — test setup is 50+ lines for a 3-line assertion.
Flaky tests from global state — tests pass locally but fail in CI, or pass/fail unpredictably.
Coverage theater — chasing 100% line coverage while ignoring edge cases and error paths.
E2E tests for everything — using Playwright for logic that could be unit-tested in milliseconds.
Remember: The goal is deployment confidence, not coverage theater.
assets/e2e-data/accessibility-checks.md (opens in a new tab)assets/e2e-data/common-ui-bugs.md (opens in a new tab)assets/e2e-data/playwright-best-practices.md (opens in a new tab)assets/e2e-workflow/phase-1-discovery.md (opens in a new tab)assets/e2e-workflow/phase-2-setup.md (opens in a new tab)assets/e2e-workflow/phase-2.5-preflight.md (opens in a new tab)assets/e2e-workflow/phase-3-generation.md (opens in a new tab)assets/e2e-workflow/phase-4-capture.md (opens in a new tab)assets/e2e-workflow/phase-5-analysis.md (opens in a new tab)assets/e2e-workflow/phase-6-regression.md (opens in a new tab)assets/e2e-workflow/phase-7-fixes.md (opens in a new tab)assets/e2e-workflow/phase-8-export.md (opens in a new tab)assets/nextjs/playwright.config.ts (opens in a new tab)assets/nextjs/test-setup.ts (opens in a new tab)assets/nextjs/vitest.config.ts (opens in a new tab)assets/rust-checklists/pre-commit.md (opens in a new tab)assets/rust-checklists/review.md (opens in a new tab)assets/shellspec/spec_template.sh (opens in a new tab)assets/skill-testing/test_template.json (opens in a new tab)evals/evals.json (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Playwright, TypeScript, React, Rust, PHP
test-framework, test-scaffolding, test-coverage, playwright, rust-testing, phpunit
npx claudepluginhub viktorbezdek/skillstack --plugin testing-frameworkOther plugins' skills for the same job