bmad-testarch-framework

Initialize test frameworks with Playwright, Cypress, or backend test stacks including fixtures and configuration.

1|Updated Sep 18, 2026
One-click install
npx skills add https://github.com/PastaSus/egg-defender --skill bmad-testarch-framework-pastasus
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bmad-testarch-framework
Source: https://github.com/PastaSus/egg-defender/tree/main/.agents/skills/bmad-testarch-framework
Command: npx skills add https://github.com/PastaSus/egg-defender --skill bmad-testarch-framework-pastasus

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Setting up a test framework from scratch involves dozens of decisions—framework selection, directory structure, fixtures, factories, configuration, and CI readiness—that are easy to get wrong and tedious to repeat across projects. ## Core Features & Use Cases - Automated Framework Selection: Detects the project stack (frontend, backend, fullstack, mobile) from project manifests and selects Playwright, Cypress, pytest, JUnit, Go test, xUnit, RSpec, or Maestro with documented rationale. - Complete Scaffolding: Creates test directory structures, framework config files, fixture architectures with mergeTests, faker-based data factories with auto-cleanup, sample tests, and environment files. - Validation & Resume: Supports Create, Resume, Validate, and Edit modes with a progress-tracking document and a comprehensive quality checklist. - Use Case: A developer starting a React project says "lets setup test framework" and receives a full Playwright setup with auth fixtures, sample E2E tests, package.json scripts, and a tests/README.md. ## Quick Start Ask the assistant to set up a test framework for this project, for example by saying "lets setup test framework".

Frequently Asked Questions about bmad-testarch-framework

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up a Playwright test framework in an existing project?

Invoke the framework setup workflow, which detects your stack from package.json, scaffolds tests/e2e and tests/support directories, generates playwright.config.ts with timeouts and reporters, and creates fixtures, factories, and sample tests.

Playwright vs Cypress: which should I choose for E2E testing?

The workflow defaults to Playwright for large repos, multi-browser needs, heavy API plus UI integration, and CI parallelism. Cypress is recommended for small teams prioritizing developer experience, component testing, or simpler setup.

Does this test setup support backend languages like Python or Go?

Yes. Backend stacks get idiomatic setups: pytest with conftest.py for Python, JUnit 5 for Java, Go test with testdata for Go, xUnit for .NET, and RSpec for Ruby, each with language-appropriate directory structures and test commands.

Can I resume an interrupted test framework setup?

Yes. The workflow saves progress to a tracking document with frontmatter after each step. Selecting Resume mode loads that document, verifies previously created artifacts still exist, and routes to the next incomplete step.

What happens if my project already has a test framework installed?

The preflight step checks for existing configs like playwright.config or cypress.config and halts with a report if a conflicting framework is detected, preventing duplicate or broken setups.