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

Troubleshooting Guide

This guide helps you diagnose and resolve common issues when using TEA (Test Engineering Architect).


Symptom: After running npx bmad-method install, TEA agent is not available.

Causes:

  • TEA was not selected during installation
  • Installation process failed silently
  • _bmad/tea/ directory was not created

Solutions:

  1. Verify TEA installation:

    Terminal window
    ls -la _bmad/tea/
    # Should show: agents/, workflows/, testarch/, module.yaml
  2. If missing, reinstall TEA:

    Terminal window
    npx bmad-method install
    # Select: Test Architect (TEA)
  3. Check installation logs for errors:

    Terminal window
    # Look for error messages during installation
    npx bmad-method install --verbose

Symptom: Installation process hangs or times out.

Causes:

  • Network connectivity issues
  • NPM registry timeout
  • Disk space issues

Solutions:

  1. Check network connectivity:

    Terminal window
    ping registry.npmjs.org
  2. Check available disk space:

    Terminal window
    df -h
  3. Clear NPM cache and retry:

    Terminal window
    npm cache clean --force
    npx bmad-method install
  4. Use alternative registry:

    Terminal window
    npm config set registry https://registry.npmjs.org/

Symptom: Error message: Error: Agent '_bmad/tea' not found or Agent 'tea' could not be loaded.

Causes:

  • TEA not installed
  • Incorrect agent path
  • Corrupted installation

Solutions:

  1. Verify TEA agent file exists:

    Terminal window
    ls -la _bmad/tea/agents/tea.agent.yaml
  2. Validate agent YAML syntax:

    Terminal window
    # Check for YAML syntax errors
    node tools/validate-agent-schema.js
  3. Reinstall TEA if corrupted:

    Terminal window
    rm -rf _bmad/tea/
    npx bmad-method install

Symptom: TEA agent loads successfully, but workflow triggers (TF, TD, AT, etc.) don’t execute.

Causes:

  • Workflow files missing
  • Incorrect workflow paths in agent definition
  • YAML syntax errors in workflow files

Solutions:

  1. Check workflow directories exist:

    Terminal window
    ls -la _bmad/tea/workflows/testarch/
    # Should show: atdd/, automate/, ci/, framework/, nfr-assess/, test-design/, test-review/, trace/
  2. Validate workflow YAML files:

    Terminal window
    # Check each workflow
    cat _bmad/tea/workflows/testarch/test-design/workflow.yaml
  3. Test workflow trigger directly:

    Terminal window
    # Try full command
    /bmad:tea:test-design

Symptom: Workflow executes but doesn’t generate expected files (test designs, reports, tests).

Causes:

  • Output directory doesn’t exist or lacks write permissions
  • Variable test_artifacts not configured
  • Workflow completed but didn’t reach output generation step

Solutions:

  1. Check output directory configuration:

    Terminal window
    cat _bmad/tea/module.yaml | grep test_artifacts
  2. Create output directory if missing:

    Terminal window
    mkdir -p test-results
  3. Check directory permissions:

    Terminal window
    ls -la test-results/
    # Should be writable
  4. Verify workflow completed all steps:

    # Check Claude's response for completion message
    # Look for: "✓ Test design complete" or similar

Symptom: Workflow reports subprocess failure, e.g., “API test generation subprocess failed”.

Causes:

  • Subprocess step file missing
  • Temp file write permissions issue
  • Invalid subprocess output format

Solutions:

  1. Verify subprocess step files exist:

    Terminal window
    # For automate workflow
    ls -la _bmad/tea/workflows/testarch/automate/steps-c/step-03*.md
    # Should show: step-03a-subprocess-api.md, step-03b-subprocess-e2e.md, step-03c-aggregate.md
  2. Check temp file directory permissions:

    Terminal window
    ls -la /tmp/ | grep bmad-tea
    # Should show temp files if workflow ran
  3. Look for error messages in subprocess output:

    # Check Claude's response for specific error details

Symptom: Workflow executes but doesn’t reference knowledge base patterns (e.g., no mention of “test-quality”, “network-first”).

Causes:

  • tea-index.csv missing or corrupted
  • Knowledge fragment files missing
  • Workflow manifest doesn’t specify fragments

Solutions:

  1. Verify tea-index.csv exists:

    Terminal window
    cat _bmad/tea/testarch/tea-index.csv | wc -l
    # Should show 35 lines (header + 34 fragments)
  2. Check knowledge fragment files:

    Terminal window
    ls -la _bmad/tea/testarch/knowledge/ | wc -l
    # Should show 34+ files
  3. Validate CSV format:

    Terminal window
    head -5 _bmad/tea/testarch/tea-index.csv
    # Should show: fragment_id,title,description,tags,file_path
  4. Check workflow manifest:

    Terminal window
    # Each workflow.yaml should specify knowledge_fragments
    grep -A 5 "knowledge_fragments" _bmad/tea/workflows/testarch/test-design/workflow.yaml

Symptom: Installation completes without asking for TEA configuration (test_artifacts, Playwright Utils, etc.).

Causes:

  • Variables marked as prompt: false in module.yaml
  • Installation running in non-interactive mode
  • Module.yaml misconfigured

Solutions:

  1. Check variable prompt settings:

    Terminal window
    cat _bmad/tea/module.yaml | grep -A 3 "test_artifacts"
    # Should show prompt: true
  2. Manually edit module.yaml if needed:

    Terminal window
    # Update _bmad/tea/module.yaml
    vi _bmad/tea/module.yaml
  3. Run installation in interactive mode:

    Terminal window
    npx bmad-method install --interactive

Symptom: Workflows don’t include Playwright Utils references even though tea_use_playwright_utils is enabled.

Causes:

  • Variable set to false in module.yaml
  • Playwright Utils knowledge fragments missing
  • Workflow doesn’t support Playwright Utils integration

Solutions:

  1. Verify variable setting:

    Terminal window
    cat _bmad/tea/module.yaml | grep tea_use_playwright_utils
    # Should show: default: true (if enabled)
  2. Check Playwright Utils fragments exist:

    Terminal window
    grep -i "playwright-utils" _bmad/tea/testarch/tea-index.csv
    # Should show 6 fragments
  3. Note: Only certain workflows integrate Playwright Utils:

    • ✅ Framework (TF)
    • ✅ Test Design (TD)
    • ✅ ATDD (AT)
    • ✅ Automate (TA)
    • ✅ Test Review (RV)
    • ❌ CI, Trace, NFR-Assess (not applicable)

Symptom: Test files created in unexpected directory.

Causes:

  • test_artifacts variable misconfigured
  • Relative path confusion
  • Working directory changed

Solutions:

  1. Check test_artifacts configuration:

    Terminal window
    cat _bmad/tea/module.yaml | grep test_artifacts
  2. Use absolute paths:

    Terminal window
    # Specify absolute path
    export TEST_ARTIFACTS=/path/to/project/test-results
  3. Verify working directory:

    Terminal window
    pwd
    # Should be project root

Symptom: TEA generates tests with JavaScript/TypeScript syntax errors.

Causes:

  • Framework configuration mismatch (Playwright vs Cypress)
  • Wrong test template loaded
  • Knowledge fragment syntax error

Solutions:

  1. Specify framework explicitly:

    # In chat with TEA
    "Generate Playwright tests using TypeScript"
  2. Validate generated tests:

    Terminal window
    npx eslint tests/**/*.spec.ts
  3. Check knowledge fragments for errors:

    Terminal window
    # Validate markdown syntax
    markdownlint _bmad/tea/testarch/knowledge/*.md

Symptom: Error: EACCES: permission denied when writing files.

Causes:

  • Directory not writable
  • File owned by different user
  • Disk full

Solutions:

  1. Check directory permissions:

    Terminal window
    ls -la test-results/
  2. Fix permissions:

    Terminal window
    chmod -R u+w test-results/
  3. Check disk space:

    Terminal window
    df -h

Symptom: Tests reference Playwright Utils but imports fail.

Causes:

  • Playwright Utils not installed
  • Wrong import path
  • Version mismatch

Solutions:

  1. Install Playwright Utils:

    Terminal window
    npm install @muratkeremozcan/playwright-utils
  2. Verify installation:

    Terminal window
    npm ls @muratkeremozcan/playwright-utils
  3. Check import paths in generated tests:

    // Should be:
    import { expect, test } from '@muratkeremozcan/playwright-utils';

Symptom: tea_use_mcp_enhancements enabled but no MCP features in outputs.

Causes:

  • MCP server not configured in Claude Desktop
  • Variable not read correctly
  • Workflow doesn’t support MCP enhancements

Solutions:

  1. Verify MCP configuration in Claude Desktop:

    // Check claude_desktop_config.json
    {
    "mcpServers": {
    "playwright": {
    "command": "npx",
    "args": ["@modelcontextprotocol/server-playwright"]
    }
    }
    }
  2. Check variable setting:

    Terminal window
    cat _bmad/tea/module.yaml | grep tea_use_mcp_enhancements
  3. Restart Claude Desktop after configuration changes.


Symptom: Workflows run for several minutes without completing.

Causes:

  • Large codebase exploration
  • Many test files to review
  • Subprocess execution overhead
  • Network latency (if using web-based Claude)

Solutions:

  1. Scope workflows to specific directories:

    # Instead of "review all tests"
    "Review tests in tests/e2e/checkout/"
  2. Use selective workflows:

    • Use automate for targeted test generation
    • Use test-review on specific files, not entire suite
  3. Check system resources:

    Terminal window
    top
    # Look for CPU/memory usage

Symptom: Initial workflow load takes 30+ seconds.

Causes:

  • All 34 fragments loading at once
  • Large fragment file sizes
  • Disk I/O bottleneck

Solutions:

  1. This is expected behavior - knowledge base loading is one-time per workflow
  2. Use cached knowledge (workflows cache fragments in memory)
  3. For repeated runs, performance should improve

Enable debug logging for detailed diagnostics:

Terminal window
# Set debug environment variable
export DEBUG=bmad:tea:*
# Run workflow with verbose output
# (Note: Exact implementation depends on BMAD Method)

When reporting issues, include:

  1. TEA Version:

    Terminal window
    cat _bmad/tea/module.yaml | grep version
  2. BMAD Method Version:

    Terminal window
    bmad --version
  3. Node Version:

    Terminal window
    node --version
  4. Operating System:

    Terminal window
    uname -a
  5. Directory Structure:

    Terminal window
    tree -L 2 _bmad/tea/
  6. Error Messages: Copy full error message and stack trace

  7. Steps to Reproduce: Exact commands that trigger the issue

  1. Documentation: test-architect.bmad-method.org
  2. GitHub Issues: Report a bug
  3. GitHub Discussions: Ask a question
  4. Migration Guide: docs/MIGRATION.md for upgrade issues

Check these first:

  • TEA is installed: ls -la _bmad/tea/
  • Using correct command namespace: /bmad:tea:* not /bmad:bmm:tea:*
  • Module.yaml exists and is valid
  • Knowledge base files present (34 fragments)
  • Output directory exists and is writable
  • No disk space issues: df -h
  • Node version >=20.0.0: node --version
  • Searched existing issues on GitHub

Fix: Reinstall TEA module via npx bmad-method install

”Knowledge fragment ‘test-quality’ not found”

Section titled “”Knowledge fragment ‘test-quality’ not found””

Fix: Verify _bmad/tea/testarch/tea-index.csv exists and lists the fragment

Fix: Create directory and fix permissions: mkdir -p test-results && chmod u+w test-results

”Workflow ‘test-design’ failed at step 3”

Section titled “”Workflow ‘test-design’ failed at step 3””

Fix: Check step file exists: _bmad/tea/workflows/testarch/test-design/steps-c/step-03-*

Fix: Validate YAML syntax: node tools/validate-agent-schema.js

Fix: Large codebases may timeout. Scope workflow to smaller directory.


Run this validation script:

#!/bin/bash
echo "Validating TEA Installation..."
# Check agent file
if [ -f "_bmad/tea/agents/tea.agent.yaml" ]; then
echo "✓ Agent file exists"
else
echo "✗ Agent file missing"
fi
# Check workflows
for workflow in atdd automate ci framework nfr-assess test-design test-review trace; do
if [ -f "_bmad/tea/workflows/testarch/$workflow/workflow.yaml" ]; then
echo "✓ Workflow: $workflow"
else
echo "✗ Workflow missing: $workflow"
fi
done
# Check knowledge base
fragment_count=$(ls _bmad/tea/testarch/knowledge/*.md 2>/dev/null | wc -l)
echo "Knowledge fragments: $fragment_count (expected: 34)"
# Check tea-index.csv
csv_lines=$(wc -l < _bmad/tea/testarch/tea-index.csv 2>/dev/null || echo "0")
echo "TEA index lines: $csv_lines (expected: 35)"
echo "Validation complete!"

If all else fails, reset TEA completely:

Terminal window
# Backup existing configuration
cp _bmad/tea/module.yaml /tmp/tea-module-backup.yaml
# Remove TEA
rm -rf _bmad/tea/
# Reinstall
npx bmad-method install
# Select: Test Architect (TEA)
# Restore configuration if needed
cp /tmp/tea-module-backup.yaml _bmad/tea/module.yaml

Still stuck? Open a GitHub Issue with diagnostic information.