vudovn avatar

Testing Patterns

A solid reference for test architecture decisions. Covers the testing pyramid, AAA pattern, and when to reach for unit vs integration vs E2E tests. The mocking section is especially practical, breaking down stubs, spies, mocks, and fakes with clear guidance on what to mock and what to leave alone. Includes tables on test organization, data strategies, and common anti-patterns like testing implementation details instead of behavior. Works well when you're setting up a new test suite or trying to clean up an existing one that's become a maintenance burden. The emphasis on tests as documentation is the right mindset.

skills.sh installs
138
GitHub stars
7.6K
last updated
Jun 3, 2026

Install

$ npx -y skills add vudovn/antigravity-kit --skill testing-patterns --agent claude-code

Installs into .claude/skills of the current project.

Files

Testing Patterns

Principles for reliable test suites.


1. Testing Pyramid

        /\          E2E (Few)
       /  \         Critical flows
      /----\
     /      \       Integration (Some)
    /--------\      API, DB queries
   /          \
  /------------\    Unit (Many)
                    Functions, classes

2. AAA Pattern

StepPurpose
ArrangeSet up test data
ActExecute code under test
AssertVerify outcome

3. Test Type Selection

When to Use Each

TypeBest ForSpeed
UnitPure functions, logicFast (<100ms)
IntegrationAPI, DB, servicesMedium
E2ECritical user flowsSlow

4. Unit Test Principles

Good Unit Tests

PrincipleMeaning
Fast< 100ms each
IsolatedNo external deps
RepeatableSame result always
Self-checkingNo manual verification
TimelyWritten with code

What to Unit Test

Sponsors

Details

Repository
github.com/vudovn/antigravity-kit
Category
Testing & QA
First seen
Jun 3, 2026

More from vudovn/antigravity-kit

All 30
10xbigboss avatartesting-best-practices0xbigboss/claude-codetesting best practices135skills.sh installs
2jabrena avatar132-java-testing-integration-testingjabrena/cursor-rules-java132 java testing integration testing128skills.sh installs
3absolutelyskilled avatarmobile-testingabsolutelyskilled/absolutelyskilledmobile testing125skills.sh installs
4shipshitdev avatartesting-expertshipshitdev/librarytesting expert120skills.sh installs
5erichowens avatartest-automation-experterichowens/some_claude_skillstest automation expert119skills.sh installs
6skillcreatorai avatarqa-regressionskillcreatorai/ai-agent-skillsqa regression118skills.sh installs