---
name: Test Automation
slug: babysitter-2
category: Quality
description: Automate test suite execution with Vitest and Playwright. Collect pass/fail counts, extract failure details, measure coverage, and identify flaky tests to accelerate debugging and quality assurance.
github: "https://github.com/a5c-ai/babysitter/tree/main/library/methodologies/automaker/skills/test-automation"
language: JavaScript
stars: 1600
forks: 94
install: "git clone https://github.com/a5c-ai/babysitter"
added: 2026-07-20T06:48:25.738Z
last_synced: 2026-07-29T06:36:58.086Z
canonical_url: "https://dirskills.com/skills/babysitter-2"
---

# Test Automation

Automate test suite execution with Vitest and Playwright. Collect pass/fail counts, extract failure details, measure coverage, and identify flaky tests to accelerate debugging and quality assurance.

**Install:** `git clone https://github.com/a5c-ai/babysitter`

## README

# Test Automation

Execute Vitest and Playwright test suites with result collection and failure analysis.

## Agent
Test Runner - `automaker-test-runner`

## Workflow
1. Navigate to worktree path
2. Run Vitest unit tests (npx vitest run --reporter=json)
3. Run Playwright E2E tests (npx playwright test --reporter=json)
4. Collect pass/fail counts per suite
5. Extract failure messages and stack traces
6. Measure code coverage
7. Identify flaky tests
8. Analyze failure root causes for convergence

## Inputs
- `projectName` - Project name
- `featureId` - Feature identifier
- `worktreePath` - Path to isolated worktree
- `testFramework` - Framework: 'vitest', 'playwright', 'both'
- `changedFiles` - Files changed by implementation

## Outputs
- Test results with allPassed, counts, failures, coverage, flaky tests

## Process Files
- `automaker-orchestrator.js` - Phase 3 (testing)
- `automaker-agent-execution.js` - Stages 4-5
- `automaker-review-ship.js` - Integration testing
