Skip to content
πŸ€– Consolidated, AI-optimized BMAD docs: llms-full.txt. Fetch this plain text file for complete context.

How to Set Up a Test Framework with TEA

Use TEA’s framework workflow to scaffold a production-ready test framework for your project.

  • No existing test framework in your project
  • Current test setup isn’t production-ready
  • Starting a new project that needs testing infrastructure
  • Phase 3 (Solutioning) after architecture is complete

Start a fresh chat and load the TEA (Test Engineering Architect) agent.

framework

TEA will ask about:

  • Your tech stack (React, Node, etc.)
  • Preferred test framework:
    • Frontend/Fullstack: Playwright, Cypress
    • Backend (Node.js): Jest, Vitest, or Playwright (API testing via playwright-utils)
    • Backend (Python): pytest, or Playwright for Python
    • Backend (Java/Kotlin): JUnit, or Playwright for Java
    • Backend (Go): Go test
    • Backend (C#/.NET): dotnet test / xUnit, or Playwright for .NET
    • Backend (Ruby): RSpec
  • Testing scope (E2E, integration, unit, API)
  • CI/CD platform (GitHub Actions, GitLab CI, Jenkins, Azure DevOps, Harness, etc.)

TEA generates:

  • Test scaffold β€” Directory structure and config files (language-idiomatic)
  • Sample specs β€” Example tests following best practices for your framework
  • .env.example β€” Environment variable template
  • Version file β€” .nvmrc (Node.js), .python-version (Python), global.json (.NET), etc.
  • README updates β€” Testing documentation

Frontend/Fullstack (Node.js):

tests/
β”œβ”€β”€ e2e/
β”‚ β”œβ”€β”€ example.spec.ts
β”‚ └── fixtures/
β”œβ”€β”€ integration/
β”œβ”€β”€ unit/
β”œβ”€β”€ playwright.config.ts # or cypress.config.ts
└── README.md

Backend (Python example):

tests/
β”œβ”€β”€ unit/
β”‚ └── test_example.py
β”œβ”€β”€ integration/
β”œβ”€β”€ api/
β”œβ”€β”€ conftest.py
└── README.md

Note: Playwright has official bindings for Python, Java, and .NET β€” making it viable for API testing across languages, not just Node.js.

TEA can integrate with @seontechnologies/playwright-utils for advanced fixtures:

Terminal window
npm install -D @seontechnologies/playwright-utils

Enable during BMad installation or set tea_use_playwright_utils: true in config.

Utilities available: api-request, network-recorder, auth-session, intercept-network-call, recurse, log, file-utils, burn-in, network-error-monitor

TEA can use Playwright MCP servers for enhanced capabilities:

  • playwright β€” Browser automation
  • playwright-test β€” Test runner with failure analysis

Configure in your IDE’s MCP settings.

  • Run only once per repository β€” Framework setup is a one-time operation
  • Run after architecture is complete β€” Framework aligns with tech stack
  • Follow up with CI setup β€” Run ci to configure CI/CD pipeline

After test framework setup:

  1. Test Design β€” Create test plans for system or epics
  2. CI Configuration β€” Set up automated test runs
  3. Story Implementation β€” Tests are ready for development