Claude Code Plugins

Community-maintained marketplace

Feedback

Write effective tests for code quality and reliability. Use when implementing features, fixing bugs, or improving coverage. Covers unit, integration, and E2E testing.

Install Skill

1Download skill
2Enable skills in Claude

Open claude.ai/settings/capabilities and find the "Skills" section

3Upload to Claude

Click "Upload skill" and select the downloaded ZIP file

Note: Please verify skill by going through its instructions before using it.

SKILL.md

name testing
description Write effective tests for code quality and reliability. Use when implementing features, fixing bugs, or improving coverage. Covers unit, integration, and E2E testing.
allowed-tools Read, Write, Edit, Bash, Glob, Grep, mcp__serena__*, mcp__chrome-devtools__*

Testing Software

MCP Tools

Serena (coverage analysis):

  • find_symbol — Locate functions needing tests
  • find_referencing_symbols — Identify test dependencies
  • get_symbols_overview — Map testable surface area

Chrome DevTools (E2E testing):

  • Automate user flows in real browser
  • Capture screenshots for visual regression
  • Run Lighthouse for accessibility testing
  • Profile performance during test runs

Testing Pyramid

  1. Unit Tests (Many): Fast, isolated, test single units
  2. Integration Tests (Some): Test component interactions
  3. E2E Tests (Few): Test complete user flows — use Chrome DevTools

Workflows

  • Analyze: Use Serena to identify untested code
  • Unit Tests: Cover all public functions
  • Edge Cases: Test boundaries and error conditions
  • Integration: Test external dependencies
  • E2E: Use Chrome DevTools for browser automation
  • Regression: Add test for each bug fix

Test Quality Standards

Deterministic

Tests must produce the same result every time.

Isolated

Tests should not depend on each other or shared state.

Clear

Test names should describe the behavior being tested.

Test Patterns

Arrange-Act-Assert (AAA)

test("user registration sends welcome email", async () => {
  // Arrange
  const emailService = new MockEmailService();
  const userService = new UserService(emailService);

  // Act
  await userService.register("test@example.com");

  // Assert
  expect(emailService.sentEmails).toContainEqual({
    to: "test@example.com",
    subject: "Welcome!"
  });
});

E2E Testing with Chrome DevTools

// Use Chrome DevTools MCP for browser automation
// - Navigate to pages
// - Fill forms and click buttons
// - Capture screenshots for visual regression
// - Run Lighthouse accessibility audits
// - Check console for errors

Commands

# Run tests
npm test
pytest
go test ./...

# With coverage
npm test -- --coverage
pytest --cov=src
go test -cover ./...

Finding Untested Code

Use Serena to identify gaps:

  1. get_symbols_overview — List all functions in module
  2. Check which have corresponding test files
  3. Use find_referencing_symbols to see if function is tested