Troubleshooting Guide
Troubleshooting Guide
Section titled âTroubleshooting GuideâThis guide helps you diagnose and resolve common issues when using TEA (Test Engineering Architect).
Table of Contents
Section titled âTable of Contentsâ- Installation Issues
- Agent Loading Issues
- Workflow Execution Issues
- Knowledge Base Issues
- Configuration Issues
- Output and File Issues
- Integration Issues
- Performance Issues
- Getting Help
Installation Issues
Section titled âInstallation IssuesâTEA Module Not Found After Installation
Section titled âTEA Module Not Found After Installationâ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:
-
Verify TEA installation:
Terminal window ls -la _bmad/tea/# Should show: agents/, workflows/, testarch/, module.yaml -
If missing, reinstall TEA:
Terminal window npx bmad-method install# Select: Test Architect (TEA) -
Check installation logs for errors:
Terminal window # Look for error messages during installationnpx bmad-method install --verbose
Installing TEA Behind a Corporate Firewall (Local Repo)
Section titled âInstalling TEA Behind a Corporate Firewall (Local Repo)âIf the BMAD installer can run but cannot fetch the Test Architect module from GitHub, point it to a local clone or internal mirror.
Goal: Make the installer clone TEA from a local path instead of the public repo.
-
Clone TEA locally (or use your internal Git mirror):
Terminal window git clone /path/to/your/internal/mirror/bmad-method-test-architecture-enterprise \/path/to/local/bmad-method-test-architecture-enterprise -
Edit the BMAD installer module list in the BMAD repo you are running the installer from:
BMAD-METHOD/tools/cli/external-official-modules.yamlUpdate the TEA entry to point to your local path:
bmad-method-test-architecture-enterprise:url: /path/to/local/bmad-method-test-architecture-enterprisemodule-definition: src/module.yamlcode: teaname: 'Test Architect'description: 'Master Test Architect for quality strategy, test automation, and release gates'defaultSelected: falsetype: bmad-orgnpmPackage: bmad-method-test-architecture-enterprise -
Run the installer:
Terminal window npx bmad-method install
Notes:
url:can be a local filesystem path or an internal Git mirror URL.- If your environment blocks npm, use an internal npm proxy or allow npm only for the local module cache.
Module Installation Hangs
Section titled âModule Installation HangsâSymptom: Installation process hangs or times out.
Causes:
- Network connectivity issues
- NPM registry timeout
- Disk space issues
Solutions:
-
Check network connectivity:
Terminal window ping registry.npmjs.org -
Check available disk space:
Terminal window df -h -
Clear NPM cache and retry:
Terminal window npm cache clean --forcenpx bmad-method install -
Use alternative registry:
Terminal window npm config set registry https://registry.npmjs.org/
Agent Loading Issues
Section titled âAgent Loading IssuesââAgent Not Foundâ Error
Section titled ââAgent Not Foundâ Errorâ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:
-
Verify TEA agent skill exists:
Terminal window ls -la _bmad/tea/agents/bmad-tea/SKILL.md -
Validate agent schema:
Terminal window # Check for schema errorsnode tools/validate-agent-schema.js -
Reinstall TEA if corrupted:
Terminal window rm -rf _bmad/tea/npx bmad-method install
TEA Loads But Commands Donât Work
Section titled âTEA Loads But Commands Donât Workâ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:
-
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/ -
Validate workflow YAML files:
Terminal window # Check each workflowcat _bmad/tea/workflows/testarch/bmad-testarch-test-design/workflow.yaml -
Test workflow trigger directly:
# Try full slash command/bmad:tea:test-design# Codex skill-mode alternative$bmad-tea-testarch-test-design
Custom TEA Workflow Does Not Appear
Section titled âCustom TEA Workflow Does Not AppearâSymptom: A custom workflow used to be available from TEA, but it no longer appears in the bmad-tea menu after updates.
Cause: TEA is now a standalone module. Custom workflows are not merged into TEA core automatically.
Solution:
- Package the workflow as custom content or a custom module instead of editing TEA directly.
- Attach it to
bmad-teausing the generated agent customization file under_bmad/_config/agents/. - Re-run
npx bmad-method installso the customization and workflow registration are refreshed.
See Extend TEA with Custom Workflows.
Workflow Execution Issues
Section titled âWorkflow Execution IssuesâGitHub Copilot Slash Command Fails with âNo such file or directoryâ
Section titled âGitHub Copilot Slash Command Fails with âNo such file or directoryââSymptom: A workflow or custom skill launched through GitHub Copilot in VS Code fails with an error such as:
python3 scripts/resolve_customization.py ...can't open file 'C:\path\to\workspace\scripts\resolve_customization.py': [Errno 2] No such file or directoryCause: GitHub Copilot executes skill commands from the workspace root, not from the installed skill folder under .github/skills/.
Fix:
- Anchor skill-local files with
{skill-root}. - Anchor repository files with
{project-root}. - Update workflow entrypoints so sibling files are loaded from
{skill-root}, not from implicit relative paths.
Good examples:
Read `{skill-root}/workflow.md`Load `{skill-root}/steps-c/step-01-preflight.md`Run: `python3 {skill-root}/scripts/resolve_customization.py --key inject`Read `{project-root}/_bmad/tea/config.yaml`Problematic examples:
Read `workflow.md`Load `steps-c/step-01-preflight.md`Run: `python3 scripts/resolve_customization.py --key inject`If you are creating a custom TEA workflow, see Extend TEA with Custom Workflows and author it with {skill-root} / {project-root} from the start.
Workflow Starts But Produces No Output
Section titled âWorkflow Starts But Produces No Outputâ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_artifactsnot configured - Workflow completed but didnât reach output generation step
Solutions:
-
Check output directory configuration:
Terminal window cat _bmad/tea/module.yaml | grep test_artifacts -
Create output directory if missing:
Terminal window mkdir -p test-results -
Check directory permissions:
Terminal window ls -la test-results/# Should be writable -
Verify workflow completed all steps:
# Check Claude's response for completion message# Look for: "â Test design complete" or similar
Subagent Fails to Execute
Section titled âSubagent Fails to ExecuteâSymptom: Workflow reports subagent failure, e.g., âAPI test generation subagent failedâ.
Causes:
- Subagent step file missing
- Temp file write permissions issue
- Invalid subagent output format
- Requested execution mode not supported by runtime
Solutions:
-
Verify subagent step files exist:
Terminal window # For automate workflowls -la _bmad/tea/workflows/testarch/bmad-testarch-automate/steps-c/step-03*.md# Should show: step-03a-*.md, step-03b-*.md, step-03c-aggregate.md -
Check temp file directory permissions:
Terminal window ls -la /tmp/ | grep bmad-tea# Should show temp files if workflow ran -
Look for error messages in subagent output:
# Check Claude's response for specific error details -
Check TEA orchestration mode in config:
Terminal window grep -E "tea_execution_mode|tea_capability_probe" _bmad/tea/config.yaml -
If runtime does not support parallel worker launch, use deterministic fallback:
tea_execution_mode: 'sequential'tea_capability_probe: true
Knowledge Fragments Not Loading
Section titled âKnowledge Fragments Not LoadingâSymptom: Workflow executes but doesnât reference knowledge base patterns (e.g., no mention of âtest-qualityâ, ânetwork-firstâ).
Causes:
tea-index.csvmissing or corrupted- Knowledge fragment files missing
- Workflow manifest doesnât specify fragments
Solutions:
-
Verify tea-index.csv exists:
Terminal window cat _bmad/tea/agents/bmad-tea/resources/tea-index.csv | wc -l# Should show 43 lines (header + 42 fragments) -
Check knowledge fragment files:
Terminal window ls -la _bmad/tea/agents/bmad-tea/resources/knowledge/ | wc -l# Should show 40+ files -
Validate CSV format:
Terminal window head -5 _bmad/tea/agents/bmad-tea/resources/tea-index.csv# Should show: id,name,description,tags,tier,fragment_file -
Check workflow manifest:
Terminal window # Each workflow.yaml should specify knowledge_fragmentsgrep -A 5 "knowledge_fragments" _bmad/tea/workflows/testarch/bmad-testarch-test-design/workflow.yaml
Configuration Issues
Section titled âConfiguration IssuesâVariables Not Prompting During Installation
Section titled âVariables Not Prompting During InstallationâSymptom: Installation completes without asking for TEA configuration (test_artifacts, Playwright Utils, etc.).
Causes:
- Variables marked as
prompt: falsein module.yaml - Installation running in non-interactive mode
- Module.yaml misconfigured
Solutions:
-
Check variable prompt settings:
Terminal window cat _bmad/tea/module.yaml | grep -A 3 "test_artifacts"# Should show prompt: true -
Manually edit module.yaml if needed:
Terminal window # Update _bmad/tea/module.yamlvi _bmad/tea/module.yaml -
Run installation in interactive mode:
Terminal window npx bmad-method install --interactive
Playwright Utils Integration Not Working
Section titled âPlaywright Utils Integration Not WorkingâSymptom: Workflows donât include Playwright Utils references even though tea_use_playwright_utils is enabled.
Causes:
- Variable set to
falsein module.yaml - Playwright Utils knowledge fragments missing
- Workflow doesnât support Playwright Utils integration
Solutions:
-
Verify variable setting:
Terminal window cat _bmad/tea/module.yaml | grep tea_use_playwright_utils# Should show: default: true (if enabled) -
Check Playwright Utils fragments exist:
Terminal window grep -i "playwright-utils" _bmad/tea/agents/bmad-tea/resources/tea-index.csv# Should show 6 fragments -
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)
Output and File Issues
Section titled âOutput and File IssuesâTest Files Generated in Wrong Location
Section titled âTest Files Generated in Wrong LocationâSymptom: Test files created in unexpected directory.
Causes:
test_artifactsvariable misconfigured- Relative path confusion
- Working directory changed
Solutions:
-
Check test_artifacts configuration:
Terminal window cat _bmad/tea/module.yaml | grep test_artifacts -
Use absolute paths:
Terminal window # Specify absolute pathexport TEST_ARTIFACTS=/path/to/project/test-results -
Verify working directory:
Terminal window pwd# Should be project root
Generated Tests Have Syntax Errors
Section titled âGenerated Tests Have Syntax Errorsâ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:
-
Specify framework explicitly:
# In chat with TEA"Generate Playwright tests using TypeScript" -
Validate generated tests:
Terminal window npx eslint tests/**/*.spec.ts -
Check knowledge fragments for errors:
Terminal window # Validate markdown syntaxmarkdownlint _bmad/tea/agents/bmad-tea/resources/knowledge/*.md
File Permission Errors
Section titled âFile Permission ErrorsâSymptom: Error: EACCES: permission denied when writing files.
Causes:
- Directory not writable
- File owned by different user
- Disk full
Solutions:
-
Check directory permissions:
Terminal window ls -la test-results/ -
Fix permissions:
Terminal window chmod -R u+w test-results/ -
Check disk space:
Terminal window df -h
Integration Issues
Section titled âIntegration IssuesâPlaywright Utils Not Found
Section titled âPlaywright Utils Not FoundâSymptom: Tests reference Playwright Utils but imports fail.
Causes:
- Playwright Utils not installed
- Wrong import path
- Version mismatch
Solutions:
-
Install Playwright Utils:
Terminal window npm install @muratkeremozcan/playwright-utils -
Verify installation:
Terminal window npm ls @muratkeremozcan/playwright-utils -
Check import paths in generated tests:
// Should be:import { expect, test } from '@muratkeremozcan/playwright-utils';
Browser Automation Not Working
Section titled âBrowser Automation Not WorkingâSymptom: tea_browser_automation set to "auto" or "cli" or "mcp" but no browser features in outputs.
Causes:
- CLI not installed globally (for
cliorautomode) - MCP server not configured in IDE (for
mcporautomode) - Variable not read correctly
- Workflow doesnât support browser automation
Solutions:
-
For CLI mode, verify CLI is installed:
Terminal window playwright-cli --version# If missing: npm install -g @playwright/cli@latest -
For MCP mode, verify MCP configuration in IDE:
{"mcpServers": {"playwright": {"type": "stdio","command": "npx","args": ["-y", "@playwright/mcp@latest"]}}}See Configure Browser Automation â MCP Setup for the exact config file path for your tool (Claude Code, Codex, Gemini CLI, Cursor, Windsurf).
-
Check variable setting:
Terminal window cat _bmad/tea/config.yaml | grep tea_browser_automation -
Restart IDE after configuration changes.
Performance Issues
Section titled âPerformance IssuesâWorkflows Taking Too Long
Section titled âWorkflows Taking Too LongâSymptom: Workflows run for several minutes without completing.
Causes:
- Large codebase exploration
- Many test files to review
- Subagent execution overhead
- Network latency (if using web-based Claude)
Solutions:
-
Scope workflows to specific directories:
# Instead of "review all tests""Review tests in tests/e2e/checkout/" -
Use selective workflows:
- Use
automatefor targeted test generation - Use
test-reviewon specific files, not entire suite
- Use
-
Check system resources:
Terminal window top# Look for CPU/memory usage
Large Knowledge Base Loading Slowly
Section titled âLarge Knowledge Base Loading SlowlyâSymptom: Initial workflow load takes 30+ seconds.
Causes:
- Up to 42 fragments loading at once (depends on workflow and enabled integrations)
- Large fragment file sizes
- Disk I/O bottleneck
Solutions:
- This is expected behavior - knowledge base loading is one-time per workflow
- Use cached knowledge (workflows cache fragments in memory)
- For repeated runs, performance should improve
Getting Help
Section titled âGetting HelpâDebug Mode
Section titled âDebug ModeâEnable debug logging for detailed diagnostics:
# Set debug environment variableexport DEBUG=bmad:tea:*
# Run workflow with verbose output# (Note: Exact implementation depends on BMAD Method)Collecting Diagnostic Information
Section titled âCollecting Diagnostic InformationâWhen reporting issues, include:
-
TEA Version:
Terminal window cat _bmad/tea/module.yaml | grep version -
BMAD Method Version:
Terminal window bmad --version -
Node Version:
Terminal window node --version -
Operating System:
Terminal window uname -a -
Directory Structure:
Terminal window tree -L 2 _bmad/tea/ -
Error Messages: Copy full error message and stack trace
-
Steps to Reproduce: Exact commands that trigger the issue
Support Channels
Section titled âSupport Channelsâ- Documentation: test-architect.bmad-method.org
- GitHub Issues: Report a bug
- GitHub Discussions: Ask a question
Before Reporting an Issue
Section titled âBefore Reporting an IssueâCheck these first:
- TEA is installed:
ls -la _bmad/tea/ - Using the correct invocation for your tool: slash namespace
/bmad:tea:*(not/bmad:bmm:tea:*) or Codex skill equivalents ($bmad-tea-*) - Module.yaml exists and is valid
- Knowledge base files present (42 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
Common Error Messages
Section titled âCommon Error MessagesââModule âteaâ not foundâ
Section titled ââModule âteaâ not foundââ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/agents/bmad-tea/resources/tea-index.csv exists and lists the fragment
âCannot write to test-results/â
Section titled ââCannot write to test-results/ââ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/bmad-testarch-test-design/steps-c/step-03-*
âAgent YAML validation failedâ
Section titled ââAgent YAML validation failedââFix: Validate YAML syntax: node tools/validate-agent-schema.js
âSubagent execution timeoutâ
Section titled ââSubagent execution timeoutââFix: Large codebases may timeout. Scope workflow to smaller directory.
Advanced Troubleshooting
Section titled âAdvanced TroubleshootingâManually Validate Installation
Section titled âManually Validate InstallationâRun this validation script:
#!/bin/bashecho "Validating TEA Installation..."
# Check agent skill directoryif [ -f "_bmad/tea/agents/bmad-tea/SKILL.md" ]; then echo "â Agent skill exists"else echo "â Agent skill missing"fi
# Check workflowsfor 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" fidone
# Check knowledge basefragment_count=$(ls _bmad/tea/agents/bmad-tea/resources/knowledge/*.md 2>/dev/null | wc -l)echo "Knowledge fragments: $fragment_count (expected: 42)"
# Check tea-index.csvcsv_lines=$(wc -l < _bmad/tea/agents/bmad-tea/resources/tea-index.csv 2>/dev/null || echo "0")echo "TEA index lines: $csv_lines (expected: 43)"
echo "Validation complete!"Reset TEA to Fresh State
Section titled âReset TEA to Fresh StateâIf all else fails, reset TEA completely:
# Backup existing configurationcp _bmad/tea/module.yaml /tmp/tea-module-backup.yaml
# Remove TEArm -rf _bmad/tea/
# Reinstallnpx bmad-method install# Select: Test Architect (TEA)
# Restore configuration if neededcp /tmp/tea-module-backup.yaml _bmad/tea/module.yamlStill stuck? Open a GitHub Issue with diagnostic information.