Agent skill · Testing & QA

testing-strategies

Testing strategies including contract testing, snapshot testing, mutation testing, property-based testing, and test organization

Rohit Ghumare73,165★ · +3,601/wk · 3 repos on radarProfile →
claude-codeApache-2.0
Install
npx skills add rohitg00/awesome-claude-code-toolkit --skill testing-strategies --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 6 KB
Bundled scripts: none
Path: skills/testing-strategies/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 2,438
Language: JavaScript
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Testing Strategies ## Test Structure (Arrange-Act-Assert) ```typescript describe("OrderService", () => { describe("createOrder", () => { it("creates an order with valid items and returns order ID", async () => { const repo = new InMemoryOrderRepository(); const service = new OrderService(repo); const input = { customerId: "c1", items: [{ productId: "p1", quantity: 2 }] }; const result = await service.createOrder(input); expect(result.id).toBeDefined(); expect(result.status).toBe("pending"); expect(result.items).toHaveLength(1); const saved = await repo.findById(result.id); expect(saved).toEqual(result); }); it("rejects order with empty items", async () => { const service = new OrderService(new InMemoryOrderRepository()); await expect( service.createOrder({ customerId: "c1", items: [] }) ).rejects.toThrow("Order must have at least one item"); }); }); }); ``` Name tests by behavior, not method name. Each test should be independent and self-contained. ## Contract Testing (Pact) ```typescript import { PactV4 } from "@pact-foundation/pact"; const provider = new PactV4({ consumer: "OrderService", provider: "UserService", }); describe("UserService contract", () => { it("returns user by

What's inside
Steps it walks through
  1. Test Structure (Arrange-Act-Assert)
  2. Contract Testing (Pact)
  3. Snapshot Testing
  4. Property-Based Testing
  5. Integration Test with Test Containers
  6. Test Doubles
  7. Anti-Patterns
  8. Checklist
More from awesome-claude-code-toolkit
All skills →
About this skill
What does the testing-strategies skill do?

Testing strategies including contract testing, snapshot testing, mutation testing, property-based testing, and test organization

How do I install it?

Run `npx skills add rohitg00/awesome-claude-code-toolkit --skill testing-strategies --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From rohitg00/awesome-claude-code-toolkit, a repository with 2,438 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going