docs/reference/testing.md
BMad provides two testing paths: a built-in QA workflow for fast test generation and an installable Test Architect module for enterprise-grade test strategy.
| Factor | Built-in QA | TEA Module |
|---|---|---|
| Best for | Small-medium projects, quick coverage | Large projects, regulated or complex domains |
| Setup | Nothing to install -- included in BMM | Install separately via npx bmad-method install |
| Approach | Generate tests fast, iterate later | Plan first, then generate with traceability |
| Test types | API and E2E tests | API, E2E, ATDD, NFR, and more |
| Strategy | Happy path + critical edge cases | Risk-based prioritization (P0-P3) |
| Workflow count | 1 (Automate) | 9 (design, ATDD, automate, review, trace, and others) |
:::tip[Start with built-in QA] Most projects should start with the built-in QA workflow. If you later need test strategy, quality gates, or requirements traceability, install TEA alongside it. :::
The built-in QA workflow (bmad-qa-generate-e2e-tests) is part of the BMM (Agile suite) module, available through the Developer agent. It generates working tests quickly using your project's existing test framework -- no configuration or additional installation required.
Trigger: QA (via the Developer agent) or bmad-qa-generate-e2e-tests
The QA workflow (Automate) walks through five steps:
package.json and existing test files for your framework (Jest, Vitest, Playwright, Cypress, or any standard runner). If none exists, analyzes the project stack and suggests one.The workflow produces a test summary saved to your project's implementation artifacts folder.
Generated tests follow a "simple and maintainable" philosophy:
:::note[Scope]
The QA workflow generates tests only. For code review and story validation, use the Code Review workflow (CR) instead.
:::
TEA is a standalone module that provides an expert agent (Murat) and nine structured workflows for enterprise-grade testing. It goes beyond test generation into test strategy, risk-based planning, quality gates, and requirements traceability.
npx bmad-method install and select the TEA modulebmad-method-test-architecture-enterprise| Workflow | Purpose |
|---|---|
| Test Design | Create a comprehensive test strategy tied to requirements |
| ATDD | Acceptance-test-driven development with stakeholder criteria |
| Automate | Generate tests with advanced patterns and utilities |
| Test Review | Validate test quality and coverage against strategy |
| Traceability | Map tests back to requirements for audit and compliance |
| NFR Assessment | Evaluate non-functional requirements (performance, security) |
| CI Setup | Configure test execution in continuous integration pipelines |
| Framework Scaffolding | Set up test infrastructure and project structure |
| Release Gate | Make data-driven go/no-go release decisions |
TEA also supports P0-P3 risk-based prioritization and optional integrations with Playwright Utils and MCP tooling.
The QA Automate workflow appears in Phase 4 (Implementation) of the BMad Method workflow map. It is designed to run after a full epic is complete — once all stories in an epic have been implemented and code-reviewed. A typical sequence:
DS), then validate with Code Review (CR)QA (via the Developer agent) or TEA's Automate workflowbmad-retrospective) to capture lessons learnedThe built-in QA workflow works directly from source code without loading planning documents (PRD, architecture). TEA workflows can integrate with upstream planning artifacts for traceability.
For more on where testing fits in the overall process, see the Workflow Map.