Every premium and members-only resource for $9.99/month, as a no-commitment subscription. See the plans

PalateKit

Menu

Request a resource

Describe the resource you are missing in one sentence. We will email you when it is published.

0 / 280

Unlock PalateKit

Unlock everything

Plan

Paying means accepting our terms of sale.

Secure payment by Stripe. Receipts and invoices sent by email.

Welcome back

Sign in to install, download or save this resource. A free account is enough for free resources.

Testing anti-patterns: mocks and integration tests v1.0.0

Use this resource to write tests that check real behavior instead of mocks

New

  • 431 downloads
  • 250 likes
  • 215 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install test-mocks-anti-patterns

With no option, the skill goes to ~/.agents/skills/; add --agent claude-code (or codex, cursor…) to target an agent.

First time: connect the CLI with

npx --yes palatekit@latest login

The agent spots the five classic anti-patterns, such as testing the mock itself or adding test-only methods, and applies a gate before each mock. You get a test suite focused on real behavior.

Mostly picked by

Updated November 2, 2026

Card for the “Testing anti-patterns: mocks and integration tests” skill

Details

Generates with
Your agent's model
Licence
MIT

Similar resources

View all

What you get

  • SKILL.md: the three iron laws and the five anti-patterns
  • SKILL.md: gate functions to run before mocking

Good fit for

  • Your tests pass but catch nothing
  • You add mocks to every test without knowing what they replace

Not for

    Tags

    • testing
    • mocks
    • anti-patterns
    • integration

    About

    You say

    “Review my tests: they seem to check mocks rather than behavior.”

    Card for the “Testing anti-patterns: mocks and integration tests” skill

    Skill published by obra under the MIT license, delivered in its original version.

    Show more

    How to use it

    1. Install the skill in your agent's skills folder
    2. Ask your agent to write tests that check real behavior instead of mocks
    3. Review and adjust the result

    Content preview

    Files

    • LICENSE1.1 KB
    • NOTICE-PALATEKIT.md0.5 KB
    • SKILL.md8.5 KB

    Origin and licence

    Listed unmodified

    Author
    obra
    Source
    github.com/obra/superpowers-skills/tree/cdcd624ad3fd8026deb692e565351854569798dd/skills/testing/testing-anti-patterns
    Licence
    MIT

    Notice

    « Testing Anti-Patterns » (obra, MIT) livré dans sa version d'origine : fiche en français et en anglais par PalateKit.

    User reviews

    –

    No ratings yet

    Loading reviews…

    Delete your review?

    Your rating and comment will be removed from the page.