Test infrastructure

From rnavarych/alpha-engineer · View interactive version

Test infrastructure is an AI agent skill from the GitHub repository rnavarych/alpha-engineer. Test infrastructure: Testcontainers with real PostgreSQL (60s timeout), parallel test isolation (per-worker schema), flaky test quarantine, test data seeding patterns, ephemeral test databases, CI database setup. Use when setting up database testing, managing test isolation, improving CI test reliab

How to use this skill

Skill file

Test Infrastructure

When to use

Core principles

  1. Real database over mocks — SQLite for tests when you use PostgreSQL in prod = false confidence
  2. Parallel isolation via schemas — each worker gets its own schema, no shared state
  3. Deterministic test data — use factories, not shared fixtures that accumulate side effects
  4. Flaky tests: quarantine immediately — don't let them degrade CI trust
  5. Fast teardown — truncate tables, not DROP/CREATE (seconds vs minutes)

References available

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.