mirror of
https://github.com/bmad-code-org/BMAD-METHOD.git
synced 2026-01-30 04:32:02 +00:00
docs: named TEA links consistently (#1337)
This commit is contained in:
@@ -55,16 +55,16 @@ If you are unsure, default to the integrated path for your track and adjust late
|
|||||||
|
|
||||||
## TEA Command Catalog
|
## TEA Command Catalog
|
||||||
|
|
||||||
| Command | Primary Outputs | Notes | With Playwright MCP Enhancements |
|
| Command | Primary Outputs | Notes | With Playwright MCP Enhancements |
|
||||||
| -------------- | --------------------------------------------------------------------------------------------- | ---------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ |
|
| -------------- | --------------------------------------------------------------------------------------------- | ---------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
|
||||||
| `*framework` | Playwright/Cypress scaffold, `.env.example`, `.nvmrc`, sample specs | Use when no production-ready harness exists | - |
|
| `*framework` | Playwright/Cypress scaffold, `.env.example`, `.nvmrc`, sample specs | Use when no production-ready harness exists | - |
|
||||||
| `*ci` | CI workflow, selective test scripts, secrets checklist | Platform-aware (GitHub Actions default) | - |
|
| `*ci` | CI workflow, selective test scripts, secrets checklist | Platform-aware (GitHub Actions default) | - |
|
||||||
| `*test-design` | Combined risk assessment, mitigation plan, and coverage strategy | Risk scoring + optional exploratory mode | **+ Exploratory**: Interactive UI discovery with browser automation (uncover actual functionality) |
|
| `*test-design` | Combined risk assessment, mitigation plan, and coverage strategy | Risk scoring + optional exploratory mode | **+ Exploratory**: Interactive UI discovery with browser automation (uncover actual functionality) |
|
||||||
| `*atdd` | Failing acceptance tests + implementation checklist | TDD red phase + optional recording mode | **+ Recording**: UI selectors verified with live browser; API tests benefit from trace analysis |
|
| `*atdd` | Failing acceptance tests + implementation checklist | TDD red phase + optional recording mode | **+ Recording**: UI selectors verified with live browser; API tests benefit from trace analysis |
|
||||||
| `*automate` | Prioritized specs, fixtures, README/script updates, DoD summary | Optional healing/recording, avoid duplicate coverage | **+ Healing**: Visual debugging + trace analysis for test fixes; **+ Recording**: Verified selectors (UI) + network inspection (API) |
|
| `*automate` | Prioritized specs, fixtures, README/script updates, DoD summary | Optional healing/recording, avoid duplicate coverage | **+ Healing**: Visual debugging + trace analysis for test fixes; **+ Recording**: Verified selectors (UI) + network inspection (API) |
|
||||||
| `*test-review` | Test quality review report with 0-100 score, violations, fixes | Reviews tests against knowledge base patterns | - |
|
| `*test-review` | Test quality review report with 0-100 score, violations, fixes | Reviews tests against knowledge base patterns | - |
|
||||||
| `*nfr-assess` | NFR assessment report with actions | Focus on security/performance/reliability | - |
|
| `*nfr-assess` | NFR assessment report with actions | Focus on security/performance/reliability | - |
|
||||||
| `*trace` | Phase 1: Coverage matrix, recommendations. Phase 2: Gate decision (PASS/CONCERNS/FAIL/WAIVED) | Two-phase workflow: traceability + gate decision | - |
|
| `*trace` | Phase 1: Coverage matrix, recommendations. Phase 2: Gate decision (PASS/CONCERNS/FAIL/WAIVED) | Two-phase workflow: traceability + gate decision | - |
|
||||||
|
|
||||||
## TEA Workflow Lifecycle
|
## TEA Workflow Lifecycle
|
||||||
|
|
||||||
@@ -173,12 +173,12 @@ TEA spans multiple phases (Phase 3, Phase 4, and the release gate). Most BMM age
|
|||||||
|
|
||||||
### TEA's 8 Workflows Across Phases
|
### TEA's 8 Workflows Across Phases
|
||||||
|
|
||||||
| Phase | TEA Workflows | Frequency | Purpose |
|
| Phase | TEA Workflows | Frequency | Purpose |
|
||||||
| ----------- | --------------------------------------------------------- | ---------------- | ---------------------------------------------- |
|
| ----------- | --------------------------------------------------------- | ---------------- | ------------------------------------------------------- |
|
||||||
| **Phase 2** | (none) | - | Planning phase - PM defines requirements |
|
| **Phase 2** | (none) | - | Planning phase - PM defines requirements |
|
||||||
| **Phase 3** | \*test-design (system-level), \*framework, \*ci | Once per project | System testability review and test infrastructure setup |
|
| **Phase 3** | \*test-design (system-level), \*framework, \*ci | Once per project | System testability review and test infrastructure setup |
|
||||||
| **Phase 4** | \*test-design, \*atdd, \*automate, \*test-review, \*trace | Per epic/story | Test planning per epic, then per-story testing |
|
| **Phase 4** | \*test-design, \*atdd, \*automate, \*test-review, \*trace | Per epic/story | Test planning per epic, then per-story testing |
|
||||||
| **Release** | \*nfr-assess, \*trace (Phase 2: gate) | Per epic/release | Go/no-go decision |
|
| **Release** | \*nfr-assess, \*trace (Phase 2: gate) | Per epic/release | Go/no-go decision |
|
||||||
|
|
||||||
**Note**: `*trace` is a two-phase workflow: Phase 1 (traceability) + Phase 2 (gate decision). This reduces cognitive load while maintaining natural workflow.
|
**Note**: `*trace` is a two-phase workflow: Phase 1 (traceability) + Phase 2 (gate decision). This reduces cognitive load while maintaining natural workflow.
|
||||||
|
|
||||||
@@ -352,3 +352,59 @@ Live browser verification for test design and automation.
|
|||||||
- Enhances healing with `browser_snapshot`, console, network, and locator tools.
|
- Enhances healing with `browser_snapshot`, console, network, and locator tools.
|
||||||
|
|
||||||
**To disable**: set `tea_use_mcp_enhancements: false` in `_bmad/bmm/config.yaml` or remove MCPs from IDE config.
|
**To disable**: set `tea_use_mcp_enhancements: false` in `_bmad/bmm/config.yaml` or remove MCPs from IDE config.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Complete TEA Documentation Navigation
|
||||||
|
|
||||||
|
### Start Here
|
||||||
|
|
||||||
|
**New to TEA? Start with the tutorial:**
|
||||||
|
- [TEA Lite Quickstart Tutorial](/docs/tutorials/getting-started/tea-lite-quickstart.md) - 30-minute beginner guide using TodoMVC
|
||||||
|
|
||||||
|
### Workflow Guides (Task-Oriented)
|
||||||
|
|
||||||
|
**All 8 TEA workflows with step-by-step instructions:**
|
||||||
|
1. [How to Set Up a Test Framework with TEA](/docs/how-to/workflows/setup-test-framework.md) - Scaffold Playwright or Cypress
|
||||||
|
2. [How to Set Up CI Pipeline with TEA](/docs/how-to/workflows/setup-ci.md) - Configure CI/CD with selective testing
|
||||||
|
3. [How to Run Test Design with TEA](/docs/how-to/workflows/run-test-design.md) - Risk-based test planning (system or epic)
|
||||||
|
4. [How to Run ATDD with TEA](/docs/how-to/workflows/run-atdd.md) - Generate failing tests before implementation
|
||||||
|
5. [How to Run Automate with TEA](/docs/how-to/workflows/run-automate.md) - Expand test coverage after implementation
|
||||||
|
6. [How to Run Test Review with TEA](/docs/how-to/workflows/run-test-review.md) - Audit test quality (0-100 scoring)
|
||||||
|
7. [How to Run NFR Assessment with TEA](/docs/how-to/workflows/run-nfr-assess.md) - Validate non-functional requirements
|
||||||
|
8. [How to Run Trace with TEA](/docs/how-to/workflows/run-trace.md) - Coverage traceability + gate decisions
|
||||||
|
|
||||||
|
### Customization & Integration
|
||||||
|
|
||||||
|
**Optional enhancements to TEA workflows:**
|
||||||
|
- [Integrate Playwright Utils](/docs/how-to/customization/integrate-playwright-utils.md) - Production-ready fixtures and 9 utilities
|
||||||
|
- [Enable TEA MCP Enhancements](/docs/how-to/customization/enable-tea-mcp-enhancements.md) - Live browser verification, visual debugging
|
||||||
|
|
||||||
|
### Use-Case Guides
|
||||||
|
|
||||||
|
**Specialized guidance for specific contexts:**
|
||||||
|
- [Using TEA with Existing Tests (Brownfield)](/docs/how-to/brownfield/use-tea-with-existing-tests.md) - Incremental improvement, regression hotspots, baseline coverage
|
||||||
|
- [Running TEA for Enterprise](/docs/how-to/enterprise/use-tea-for-enterprise.md) - Compliance, NFR assessment, audit trails, SOC 2/HIPAA
|
||||||
|
|
||||||
|
### Concept Deep Dives (Understanding-Oriented)
|
||||||
|
|
||||||
|
**Understand the principles and patterns:**
|
||||||
|
- [Risk-Based Testing](/docs/explanation/tea/risk-based-testing.md) - Probability × impact scoring, P0-P3 priorities, mitigation strategies
|
||||||
|
- [Test Quality Standards](/docs/explanation/tea/test-quality-standards.md) - Definition of Done, determinism, isolation, explicit assertions
|
||||||
|
- [Fixture Architecture](/docs/explanation/tea/fixture-architecture.md) - Pure function → fixture → composition pattern
|
||||||
|
- [Network-First Patterns](/docs/explanation/tea/network-first-patterns.md) - Intercept-before-navigate, eliminating flakiness
|
||||||
|
- [Knowledge Base System](/docs/explanation/tea/knowledge-base-system.md) - Context engineering with tea-index.csv, 33 fragments
|
||||||
|
- [Engagement Models](/docs/explanation/tea/engagement-models.md) - TEA Lite, TEA Solo, TEA Integrated (5 models explained)
|
||||||
|
|
||||||
|
### Philosophy & Design
|
||||||
|
|
||||||
|
**Why TEA exists and how it works:**
|
||||||
|
- [Testing as Engineering](/docs/explanation/philosophy/testing-as-engineering.md) - **Start here to understand WHY** - The problem with AI-generated tests and TEA's three-part solution
|
||||||
|
|
||||||
|
### Reference (Quick Lookup)
|
||||||
|
|
||||||
|
**Factual information for quick reference:**
|
||||||
|
- [TEA Command Reference](/docs/reference/tea/commands.md) - All 8 workflows: inputs, outputs, phases, frequency
|
||||||
|
- [TEA Configuration Reference](/docs/reference/tea/configuration.md) - Config options, file locations, setup examples
|
||||||
|
- [Knowledge Base Index](/docs/reference/tea/knowledge-base.md) - 33 fragments categorized and explained
|
||||||
|
- [Glossary - TEA Section](/docs/reference/glossary/index.md#test-architect-tea-concepts) - 20 TEA-specific terms defined
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
title: "How to Run Test Design"
|
title: "How to Run Test Design with TEA"
|
||||||
description: How to create comprehensive test plans using TEA's test-design workflow
|
description: How to create comprehensive test plans using TEA's test-design workflow
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
title: "How to Set Up a Test Framework"
|
title: "How to Set Up a Test Framework with TEA"
|
||||||
description: How to set up a production-ready test framework using TEA
|
description: How to set up a production-ready test framework using TEA
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -24,6 +24,9 @@ const BUILD_DIR = path.join(PROJECT_ROOT, 'build');
|
|||||||
const SITE_URL = process.env.SITE_URL || 'https://bmad-code-org.github.io/BMAD-METHOD';
|
const SITE_URL = process.env.SITE_URL || 'https://bmad-code-org.github.io/BMAD-METHOD';
|
||||||
const REPO_URL = 'https://github.com/bmad-code-org/BMAD-METHOD';
|
const REPO_URL = 'https://github.com/bmad-code-org/BMAD-METHOD';
|
||||||
|
|
||||||
|
// DO NOT CHANGE THESE VALUES!
|
||||||
|
// llms-full.txt is consumed by AI agents as context. Most LLMs have ~200k token limits.
|
||||||
|
// 600k chars ≈ 150k tokens (safe margin). Exceeding this breaks AI agent functionality.
|
||||||
const LLM_MAX_CHARS = 600_000;
|
const LLM_MAX_CHARS = 600_000;
|
||||||
const LLM_WARN_CHARS = 500_000;
|
const LLM_WARN_CHARS = 500_000;
|
||||||
|
|
||||||
@@ -33,10 +36,9 @@ const LLM_EXCLUDE_PATTERNS = [
|
|||||||
'v4-to-v6-upgrade',
|
'v4-to-v6-upgrade',
|
||||||
'downloads/',
|
'downloads/',
|
||||||
'faq',
|
'faq',
|
||||||
'_STYLE_GUIDE.md',
|
|
||||||
'_archive/',
|
|
||||||
'reference/glossary/',
|
'reference/glossary/',
|
||||||
'explanation/game-dev/',
|
'explanation/game-dev/',
|
||||||
|
// Note: Files/dirs starting with _ (like _STYLE_GUIDE.md, _archive/) are excluded in shouldExcludeFromLlm()
|
||||||
];
|
];
|
||||||
|
|
||||||
// =============================================================================
|
// =============================================================================
|
||||||
@@ -260,10 +262,17 @@ function getAllMarkdownFiles(dir, baseDir = dir) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Determine whether a file path matches any configured LLM exclusion pattern.
|
* Determine whether a file path matches any configured LLM exclusion pattern.
|
||||||
|
* Also excludes any files or directories starting with underscore.
|
||||||
* @param {string} filePath - The file path to test.
|
* @param {string} filePath - The file path to test.
|
||||||
* @returns {boolean} `true` if the path contains any pattern from LLM_EXCLUDE_PATTERNS, `false` otherwise.
|
* @returns {boolean} `true` if excluded, `false` otherwise.
|
||||||
*/
|
*/
|
||||||
function shouldExcludeFromLlm(filePath) {
|
function shouldExcludeFromLlm(filePath) {
|
||||||
|
// Exclude if ANY path component starts with underscore
|
||||||
|
// (e.g., _STYLE_GUIDE.md, _archive/file.md, dir/_STYLE_GUIDE.md)
|
||||||
|
const pathParts = filePath.split(path.sep);
|
||||||
|
if (pathParts.some((part) => part.startsWith('_'))) return true;
|
||||||
|
|
||||||
|
// Check configured patterns
|
||||||
return LLM_EXCLUDE_PATTERNS.some((pattern) => filePath.includes(pattern));
|
return LLM_EXCLUDE_PATTERNS.some((pattern) => filePath.includes(pattern));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user