Skip to content
Back to skills

Test Automation

ASecurity

Test automation — test pyramid/trophy, unit, integration with real dependencies (Testcontainers), test data factories, fixtures, determinism (time, randomness, network), flaky test diagnosis and quarantine, parallelism, coverage as a signal not a target. Use to build or improve automated tests (test automation, unit tests, integration tests, flaky tests, fixtures, Testcontainers).

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentsgotestingdatabase

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add vectora-os/kit --skill test-automation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Test Automation?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Test Automation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectora-os-test-automation/badge)](https://www.skillsdirectory.com/skills/vectora-os-test-automation)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: test-automation
description: Test automation — test pyramid/trophy, unit, integration with real dependencies (Testcontainers), test data factories, fixtures, determinism (time, randomness, network), flaky test diagnosis and quarantine, parallelism, coverage as a signal not a target. Use to build or improve automated tests (test automation, unit tests, integration tests, flaky tests, fixtures, Testcontainers).
metadata:
  category: quality
---

# Test automation

## Purpose

Build fast, deterministic tests that prove behaviour.

**Use when:** writing or improving automated tests.

**Not for:** test strategy (`test-strategy`).

## Inputs

- Acceptance criteria, code.

## Outputs

- Automated tests, flakiness report.

## Read first

- [Project Brain](../../../project-brain/README.md) — `npm run brain -- query "test automation"` for prior decisions, patterns and anti-patterns.
- [Testing standard](../../../standards/testing.md)

## Steps

1. **Level.** Choose the lowest level that proves the criterion.
   Done when level justified.
2. **Data.** Factories with synthetic data; isolate per test.
   Done when tests independent.
3. **Determinism.** Control time, randomness, network.
   Done when repeated runs identical.
4. **Flakes.** Diagnose root cause; quarantine with ticket if needed.
   Done when no ignored flakes.

## Best practices

- Real database in integration tests via containers.
- Assert behaviour, not implementation.

## Common mistakes

- Sleeps instead of waits.
- Shared mutable fixtures.

## Example

Integration tests on Testcontainers Postgres; clock injected; 0 flakes over 100 runs.

## Reusable prompt

```text
Apply the Test automation skill (.agents/skills/test-automation/SKILL.md).
Context: {{task card or question; links to PRD, ADRs, code paths}}
Constraints: {{approved thresholds, deadlines, allowed files}}
Write or fix tests at the right level with isolated synthetic data and deterministic behaviour.
Return: Automated tests, flakiness report..
Cite evidence (file:line, command output, source) for every claim; list open questions separately.
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.