bmad-qa-generate-e2e-tests

Generate API and end-to-end automated tests for existing project features.

Updated Aug 25, 2024
One-click install
npx skills add https://github.com/LeGeRyChEeSe/LanPlay-DiscordBot --skill bmad-qa-generate-e2e-tests-legerycheese
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: bmad-qa-generate-e2e-tests
Source: https://github.com/LeGeRyChEeSe/LanPlay-DiscordBot/tree/main/bmad/src/bmm-skills/4-implementation/bmad-qa-generate-e2e-tests
Command: npx skills add https://github.com/LeGeRyChEeSe/LanPlay-DiscordBot --skill bmad-qa-generate-e2e-tests-legerycheese

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Writing automated tests for already-implemented features is time-consuming and often skipped, leaving codebases without regression coverage. This Skill automates the generation of API and E2E tests that match your project's existing test framework and patterns. ## Core Features & Use Cases - Framework Detection: Automatically detects the project's existing test framework (Playwright, Jest, Vitest, Cypress) from package.json and existing test files, or recommends one for the stack. - API Test Generation: Creates tests covering status codes, response structure validation, happy paths, and critical error cases for endpoints and services. - E2E Test Generation: Builds UI workflow tests using semantic locators (roles, labels, text) that assert visible outcomes of user interactions. - Use Case: After shipping a new checkout feature, ask the Skill to generate tests for it; it scans the codebase, writes Playwright E2E tests for the purchase flow, runs them to verify they pass, and saves a coverage summary to the implementation artifacts folder. ## Quick Start Ask the agent to create QA automated tests for a specific feature or directory in your project.

Frequently Asked Questions about bmad-qa-generate-e2e-tests

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

FAQPage Schema
How do I generate E2E tests for an existing feature?▼

Invoke the workflow and specify a feature name, component, or directory to scan. The Skill detects your test framework, generates tests following existing patterns, runs them to verify they pass, and saves a summary report.

What test frameworks does automated test generation support?▼

It works with whatever framework the project already uses, detected from package.json dependencies such as Playwright, Jest, Vitest, or Cypress. If none exists, it analyzes the stack and suggests an appropriate framework.

Can I generate API tests without a UI?▼

Yes, API test generation works independently of UI tests. It creates tests covering status codes like 200, 400, 404, and 500, validates response structure, and covers the happy path plus one or two error cases.

What happens if generated tests fail when run?▼

The workflow executes the tests using the project's test command and fixes failures immediately before completing. A validation checklist also confirms tests use proper locators, have no hardcoded waits, and are independent.

When should I use the Test Architect module instead?▼

Use the TEA module when you need risk-based test strategy, test design planning, quality gates, NFR assessment, or comprehensive coverage analysis. This Skill focuses on straightforward happy-path and critical-error test generation.