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
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 file exists:
Terminal window ls -la _bmad/tea/agents/tea.agent.yaml -
Validate agent YAML syntax:
Terminal window # Check for YAML syntax 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/test-design/workflow.yaml -
Test workflow trigger directly:
Terminal window # Try full command/bmad:tea:test-design
Workflow Execution Issues
Section titled âWorkflow Execution Issuesâ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
Subprocess Fails to Execute
Section titled âSubprocess Fails to Executeâ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:
-
Verify subprocess step files exist:
Terminal window # For automate workflowls -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 -
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 subprocess output:
# Check Claude's response for specific error details
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/testarch/tea-index.csv | wc -l# Should show 35 lines (header + 34 fragments) -
Check knowledge fragment files:
Terminal window ls -la _bmad/tea/testarch/knowledge/ | wc -l# Should show 34+ files -
Validate CSV format:
Terminal window head -5 _bmad/tea/testarch/tea-index.csv# Should show: fragment_id,title,description,tags,file_path -
Check workflow manifest:
Terminal window # Each workflow.yaml should specify knowledge_fragmentsgrep -A 5 "knowledge_fragments" _bmad/tea/workflows/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/testarch/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/testarch/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';
MCP Enhancements Not Applying
Section titled âMCP Enhancements Not Applyingâ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:
-
Verify MCP configuration in Claude Desktop:
// Check claude_desktop_config.json{"mcpServers": {"playwright": {"command": "npx","args": ["@modelcontextprotocol/server-playwright"]}}} -
Check variable setting:
Terminal window cat _bmad/tea/module.yaml | grep tea_use_mcp_enhancements -
Restart Claude Desktop 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
- Subprocess 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:
- All 34 fragments loading at once
- 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
- Migration Guide: docs/MIGRATION.md for upgrade issues
Before Reporting an Issue
Section titled âBefore Reporting an Issueâ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
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/testarch/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/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
âSubprocess execution timeoutâ
Section titled ââSubprocess 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 fileif [ -f "_bmad/tea/agents/tea.agent.yaml" ]; then echo "â Agent file exists"else echo "â Agent file 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/testarch/knowledge/*.md 2>/dev/null | wc -l)echo "Knowledge fragments: $fragment_count (expected: 34)"
# Check tea-index.csvcsv_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!"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.