bmad-method-test-architecture-enterprise 0.1.1-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (320) hide show
  1. package/.github/CODE_OF_CONDUCT.md +128 -0
  2. package/.github/FUNDING.yaml +15 -0
  3. package/.github/ISSUE_TEMPLATE/config.yaml +11 -0
  4. package/.github/ISSUE_TEMPLATE/feature_request.md +70 -0
  5. package/.github/ISSUE_TEMPLATE/issue.md +61 -0
  6. package/.github/workflows/docs.yaml +66 -0
  7. package/.github/workflows/manual-release.yaml +195 -0
  8. package/.github/workflows/quality.yaml +114 -0
  9. package/.husky/pre-commit +20 -0
  10. package/.markdownlint-cli2.yaml +36 -0
  11. package/.nvmrc +1 -0
  12. package/.prettierignore +9 -0
  13. package/.vscode/settings.json +47 -0
  14. package/CHANGELOG.md +217 -0
  15. package/CONTRIBUTING.md +268 -0
  16. package/LICENSE +26 -0
  17. package/README.md +300 -0
  18. package/SECURITY.md +85 -0
  19. package/TEA-MODULE-MIGRATION-PLAN.md +3788 -0
  20. package/docs/404.md +20 -0
  21. package/docs/MIGRATION.md +447 -0
  22. package/docs/explanation/engagement-models.md +767 -0
  23. package/docs/explanation/fixture-architecture.md +484 -0
  24. package/docs/explanation/knowledge-base-system.md +599 -0
  25. package/docs/explanation/network-first-patterns.md +884 -0
  26. package/docs/explanation/risk-based-testing.md +628 -0
  27. package/docs/explanation/step-file-architecture.md +609 -0
  28. package/docs/explanation/subprocess-architecture.md +578 -0
  29. package/docs/explanation/subprocess-implementation-status.md +327 -0
  30. package/docs/explanation/tea-overview.md +425 -0
  31. package/docs/explanation/test-quality-standards.md +965 -0
  32. package/docs/explanation/testing-as-engineering.md +111 -0
  33. package/docs/glossary/index.md +160 -0
  34. package/docs/how-to/brownfield/use-tea-for-enterprise.md +571 -0
  35. package/docs/how-to/brownfield/use-tea-with-existing-tests.md +631 -0
  36. package/docs/how-to/customization/enable-tea-mcp-enhancements.md +455 -0
  37. package/docs/how-to/customization/integrate-playwright-utils.md +846 -0
  38. package/docs/how-to/workflows/run-atdd.md +460 -0
  39. package/docs/how-to/workflows/run-automate.md +690 -0
  40. package/docs/how-to/workflows/run-nfr-assess.md +731 -0
  41. package/docs/how-to/workflows/run-test-design.md +144 -0
  42. package/docs/how-to/workflows/run-test-review.md +638 -0
  43. package/docs/how-to/workflows/run-trace.md +951 -0
  44. package/docs/how-to/workflows/setup-ci.md +761 -0
  45. package/docs/how-to/workflows/setup-test-framework.md +99 -0
  46. package/docs/index.md +122 -0
  47. package/docs/reference/commands.md +300 -0
  48. package/docs/reference/configuration.md +729 -0
  49. package/docs/reference/knowledge-base.md +365 -0
  50. package/docs/reference/troubleshooting.md +717 -0
  51. package/docs/tutorials/tea-lite-quickstart.md +465 -0
  52. package/eslint.config.mjs +152 -0
  53. package/package.json +117 -0
  54. package/prettier.config.mjs +32 -0
  55. package/release_notes.md +28 -0
  56. package/src/_module-installer/installer.js +92 -0
  57. package/src/agents/tea.agent.yaml +63 -0
  58. package/src/module-help.csv +9 -0
  59. package/src/module.yaml +91 -0
  60. package/src/testarch/knowledge/adr-quality-readiness-checklist.md +377 -0
  61. package/src/testarch/knowledge/api-request.md +442 -0
  62. package/src/testarch/knowledge/api-testing-patterns.md +851 -0
  63. package/src/testarch/knowledge/auth-session.md +548 -0
  64. package/src/testarch/knowledge/burn-in.md +273 -0
  65. package/src/testarch/knowledge/ci-burn-in.md +675 -0
  66. package/src/testarch/knowledge/component-tdd.md +486 -0
  67. package/src/testarch/knowledge/contract-testing.md +957 -0
  68. package/src/testarch/knowledge/data-factories.md +500 -0
  69. package/src/testarch/knowledge/email-auth.md +721 -0
  70. package/src/testarch/knowledge/error-handling.md +725 -0
  71. package/src/testarch/knowledge/feature-flags.md +750 -0
  72. package/src/testarch/knowledge/file-utils.md +456 -0
  73. package/src/testarch/knowledge/fixture-architecture.md +401 -0
  74. package/src/testarch/knowledge/fixtures-composition.md +382 -0
  75. package/src/testarch/knowledge/intercept-network-call.md +426 -0
  76. package/src/testarch/knowledge/log.md +426 -0
  77. package/src/testarch/knowledge/network-error-monitor.md +401 -0
  78. package/src/testarch/knowledge/network-first.md +486 -0
  79. package/src/testarch/knowledge/network-recorder.md +527 -0
  80. package/src/testarch/knowledge/nfr-criteria.md +670 -0
  81. package/src/testarch/knowledge/overview.md +286 -0
  82. package/src/testarch/knowledge/playwright-config.md +730 -0
  83. package/src/testarch/knowledge/probability-impact.md +601 -0
  84. package/src/testarch/knowledge/recurse.md +421 -0
  85. package/src/testarch/knowledge/risk-governance.md +615 -0
  86. package/src/testarch/knowledge/selective-testing.md +732 -0
  87. package/src/testarch/knowledge/selector-resilience.md +527 -0
  88. package/src/testarch/knowledge/test-healing-patterns.md +644 -0
  89. package/src/testarch/knowledge/test-levels-framework.md +473 -0
  90. package/src/testarch/knowledge/test-priorities-matrix.md +373 -0
  91. package/src/testarch/knowledge/test-quality.md +664 -0
  92. package/src/testarch/knowledge/timing-debugging.md +372 -0
  93. package/src/testarch/knowledge/visual-debugging.md +524 -0
  94. package/src/testarch/tea-index.csv +35 -0
  95. package/src/workflows/testarch/README.md +74 -0
  96. package/src/workflows/testarch/atdd/atdd-checklist-template.md +363 -0
  97. package/src/workflows/testarch/atdd/checklist.md +374 -0
  98. package/src/workflows/testarch/atdd/instructions.md +38 -0
  99. package/src/workflows/testarch/atdd/steps-c/step-01-preflight-and-context.md +110 -0
  100. package/src/workflows/testarch/atdd/steps-c/step-02-generation-mode.md +79 -0
  101. package/src/workflows/testarch/atdd/steps-c/step-03-test-strategy.md +76 -0
  102. package/src/workflows/testarch/atdd/steps-c/step-04-generate-tests.md +228 -0
  103. package/src/workflows/testarch/atdd/steps-c/step-04a-subprocess-api-failing.md +215 -0
  104. package/src/workflows/testarch/atdd/steps-c/step-04b-subprocess-e2e-failing.md +212 -0
  105. package/src/workflows/testarch/atdd/steps-c/step-04c-aggregate.md +329 -0
  106. package/src/workflows/testarch/atdd/steps-c/step-05-validate-and-complete.md +68 -0
  107. package/src/workflows/testarch/atdd/steps-e/step-01-assess.md +65 -0
  108. package/src/workflows/testarch/atdd/steps-e/step-02-apply-edit.md +60 -0
  109. package/src/workflows/testarch/atdd/steps-v/step-01-validate.md +67 -0
  110. package/src/workflows/testarch/atdd/validation-report-20260127-095021.md +73 -0
  111. package/src/workflows/testarch/atdd/validation-report-20260127-102401.md +116 -0
  112. package/src/workflows/testarch/atdd/workflow-plan.md +21 -0
  113. package/src/workflows/testarch/atdd/workflow.md +39 -0
  114. package/src/workflows/testarch/atdd/workflow.yaml +47 -0
  115. package/src/workflows/testarch/automate/checklist.md +582 -0
  116. package/src/workflows/testarch/automate/instructions.md +43 -0
  117. package/src/workflows/testarch/automate/steps-c/step-01-preflight-and-context.md +127 -0
  118. package/src/workflows/testarch/automate/steps-c/step-02-identify-targets.md +95 -0
  119. package/src/workflows/testarch/automate/steps-c/step-03-generate-tests.md +199 -0
  120. package/src/workflows/testarch/automate/steps-c/step-03a-subprocess-api.md +183 -0
  121. package/src/workflows/testarch/automate/steps-c/step-03b-subprocess-e2e.md +181 -0
  122. package/src/workflows/testarch/automate/steps-c/step-03c-aggregate.md +300 -0
  123. package/src/workflows/testarch/automate/steps-c/step-04-validate-and-summarize.md +69 -0
  124. package/src/workflows/testarch/automate/steps-e/step-01-assess.md +65 -0
  125. package/src/workflows/testarch/automate/steps-e/step-02-apply-edit.md +60 -0
  126. package/src/workflows/testarch/automate/steps-v/step-01-validate.md +67 -0
  127. package/src/workflows/testarch/automate/validation-report-20260127-095021.md +72 -0
  128. package/src/workflows/testarch/automate/validation-report-20260127-102401.md +114 -0
  129. package/src/workflows/testarch/automate/workflow-plan.md +20 -0
  130. package/src/workflows/testarch/automate/workflow.md +39 -0
  131. package/src/workflows/testarch/automate/workflow.yaml +54 -0
  132. package/src/workflows/testarch/ci/checklist.md +247 -0
  133. package/src/workflows/testarch/ci/github-actions-template.yaml +198 -0
  134. package/src/workflows/testarch/ci/gitlab-ci-template.yaml +149 -0
  135. package/src/workflows/testarch/ci/instructions.md +38 -0
  136. package/src/workflows/testarch/ci/steps-c/step-01-preflight.md +92 -0
  137. package/src/workflows/testarch/ci/steps-c/step-02-generate-pipeline.md +82 -0
  138. package/src/workflows/testarch/ci/steps-c/step-03-configure-quality-gates.md +75 -0
  139. package/src/workflows/testarch/ci/steps-c/step-04-validate-and-summary.md +67 -0
  140. package/src/workflows/testarch/ci/steps-e/step-01-assess.md +65 -0
  141. package/src/workflows/testarch/ci/steps-e/step-02-apply-edit.md +60 -0
  142. package/src/workflows/testarch/ci/steps-v/step-01-validate.md +67 -0
  143. package/src/workflows/testarch/ci/validation-report-20260127-095021.md +72 -0
  144. package/src/workflows/testarch/ci/validation-report-20260127-102401.md +114 -0
  145. package/src/workflows/testarch/ci/workflow-plan.md +20 -0
  146. package/src/workflows/testarch/ci/workflow.md +39 -0
  147. package/src/workflows/testarch/ci/workflow.yaml +47 -0
  148. package/src/workflows/testarch/framework/checklist.md +320 -0
  149. package/src/workflows/testarch/framework/instructions.md +38 -0
  150. package/src/workflows/testarch/framework/steps-c/step-01-preflight.md +75 -0
  151. package/src/workflows/testarch/framework/steps-c/step-02-select-framework.md +73 -0
  152. package/src/workflows/testarch/framework/steps-c/step-03-scaffold-framework.md +120 -0
  153. package/src/workflows/testarch/framework/steps-c/step-04-docs-and-scripts.md +70 -0
  154. package/src/workflows/testarch/framework/steps-c/step-05-validate-and-summary.md +68 -0
  155. package/src/workflows/testarch/framework/steps-e/step-01-assess.md +65 -0
  156. package/src/workflows/testarch/framework/steps-e/step-02-apply-edit.md +60 -0
  157. package/src/workflows/testarch/framework/steps-v/step-01-validate.md +67 -0
  158. package/src/workflows/testarch/framework/validation-report-20260127-095021.md +73 -0
  159. package/src/workflows/testarch/framework/validation-report-20260127-102401.md +116 -0
  160. package/src/workflows/testarch/framework/workflow-plan.md +22 -0
  161. package/src/workflows/testarch/framework/workflow.md +39 -0
  162. package/src/workflows/testarch/framework/workflow.yaml +49 -0
  163. package/src/workflows/testarch/nfr-assess/checklist.md +407 -0
  164. package/src/workflows/testarch/nfr-assess/instructions.md +36 -0
  165. package/src/workflows/testarch/nfr-assess/nfr-report-template.md +462 -0
  166. package/src/workflows/testarch/nfr-assess/steps-c/step-01-load-context.md +85 -0
  167. package/src/workflows/testarch/nfr-assess/steps-c/step-02-define-thresholds.md +82 -0
  168. package/src/workflows/testarch/nfr-assess/steps-c/step-03-gather-evidence.md +64 -0
  169. package/src/workflows/testarch/nfr-assess/steps-c/step-04-evaluate-and-score.md +140 -0
  170. package/src/workflows/testarch/nfr-assess/steps-c/step-04a-subprocess-security.md +138 -0
  171. package/src/workflows/testarch/nfr-assess/steps-c/step-04b-subprocess-performance.md +84 -0
  172. package/src/workflows/testarch/nfr-assess/steps-c/step-04c-subprocess-reliability.md +85 -0
  173. package/src/workflows/testarch/nfr-assess/steps-c/step-04d-subprocess-scalability.md +88 -0
  174. package/src/workflows/testarch/nfr-assess/steps-c/step-04e-aggregate-nfr.md +219 -0
  175. package/src/workflows/testarch/nfr-assess/steps-c/step-05-generate-report.md +71 -0
  176. package/src/workflows/testarch/nfr-assess/steps-e/step-01-assess.md +65 -0
  177. package/src/workflows/testarch/nfr-assess/steps-e/step-02-apply-edit.md +60 -0
  178. package/src/workflows/testarch/nfr-assess/steps-v/step-01-validate.md +67 -0
  179. package/src/workflows/testarch/nfr-assess/validation-report-20260127-095021.md +73 -0
  180. package/src/workflows/testarch/nfr-assess/validation-report-20260127-102401.md +116 -0
  181. package/src/workflows/testarch/nfr-assess/workflow-plan.md +19 -0
  182. package/src/workflows/testarch/nfr-assess/workflow.md +39 -0
  183. package/src/workflows/testarch/nfr-assess/workflow.yaml +49 -0
  184. package/src/workflows/testarch/test-design/checklist.md +410 -0
  185. package/src/workflows/testarch/test-design/instructions.md +52 -0
  186. package/src/workflows/testarch/test-design/steps-c/step-01-detect-mode.md +109 -0
  187. package/src/workflows/testarch/test-design/steps-c/step-02-load-context.md +127 -0
  188. package/src/workflows/testarch/test-design/steps-c/step-03-risk-and-testability.md +85 -0
  189. package/src/workflows/testarch/test-design/steps-c/step-04-coverage-plan.md +98 -0
  190. package/src/workflows/testarch/test-design/steps-c/step-05-generate-output.md +97 -0
  191. package/src/workflows/testarch/test-design/steps-e/step-01-assess.md +65 -0
  192. package/src/workflows/testarch/test-design/steps-e/step-02-apply-edit.md +60 -0
  193. package/src/workflows/testarch/test-design/steps-v/step-01-validate.md +67 -0
  194. package/src/workflows/testarch/test-design/test-design-architecture-template.md +222 -0
  195. package/src/workflows/testarch/test-design/test-design-qa-template.md +296 -0
  196. package/src/workflows/testarch/test-design/test-design-template.md +294 -0
  197. package/src/workflows/testarch/test-design/validation-report-20260127-095021.md +73 -0
  198. package/src/workflows/testarch/test-design/validation-report-20260127-102401.md +116 -0
  199. package/src/workflows/testarch/test-design/workflow-plan.md +22 -0
  200. package/src/workflows/testarch/test-design/workflow.md +39 -0
  201. package/src/workflows/testarch/test-design/workflow.yaml +71 -0
  202. package/src/workflows/testarch/test-review/checklist.md +472 -0
  203. package/src/workflows/testarch/test-review/instructions.md +36 -0
  204. package/src/workflows/testarch/test-review/steps-c/step-01-load-context.md +101 -0
  205. package/src/workflows/testarch/test-review/steps-c/step-02-discover-tests.md +69 -0
  206. package/src/workflows/testarch/test-review/steps-c/step-03-quality-evaluation.md +184 -0
  207. package/src/workflows/testarch/test-review/steps-c/step-03a-subprocess-determinism.md +214 -0
  208. package/src/workflows/testarch/test-review/steps-c/step-03b-subprocess-isolation.md +125 -0
  209. package/src/workflows/testarch/test-review/steps-c/step-03c-subprocess-maintainability.md +102 -0
  210. package/src/workflows/testarch/test-review/steps-c/step-03d-subprocess-coverage.md +111 -0
  211. package/src/workflows/testarch/test-review/steps-c/step-03e-subprocess-performance.md +117 -0
  212. package/src/workflows/testarch/test-review/steps-c/step-03f-aggregate-scores.md +246 -0
  213. package/src/workflows/testarch/test-review/steps-c/step-04-generate-report.md +72 -0
  214. package/src/workflows/testarch/test-review/steps-e/step-01-assess.md +65 -0
  215. package/src/workflows/testarch/test-review/steps-e/step-02-apply-edit.md +60 -0
  216. package/src/workflows/testarch/test-review/steps-v/step-01-validate.md +67 -0
  217. package/src/workflows/testarch/test-review/test-review-template.md +390 -0
  218. package/src/workflows/testarch/test-review/validation-report-20260127-095021.md +72 -0
  219. package/src/workflows/testarch/test-review/validation-report-20260127-102401.md +114 -0
  220. package/src/workflows/testarch/test-review/workflow-plan.md +18 -0
  221. package/src/workflows/testarch/test-review/workflow.md +39 -0
  222. package/src/workflows/testarch/test-review/workflow.yaml +48 -0
  223. package/src/workflows/testarch/trace/checklist.md +642 -0
  224. package/src/workflows/testarch/trace/instructions.md +36 -0
  225. package/src/workflows/testarch/trace/steps-c/step-01-load-context.md +80 -0
  226. package/src/workflows/testarch/trace/steps-c/step-02-discover-tests.md +69 -0
  227. package/src/workflows/testarch/trace/steps-c/step-03-map-criteria.md +65 -0
  228. package/src/workflows/testarch/trace/steps-c/step-04-analyze-gaps.md +244 -0
  229. package/src/workflows/testarch/trace/steps-c/step-05-gate-decision.md +232 -0
  230. package/src/workflows/testarch/trace/steps-e/step-01-assess.md +65 -0
  231. package/src/workflows/testarch/trace/steps-e/step-02-apply-edit.md +60 -0
  232. package/src/workflows/testarch/trace/steps-v/step-01-validate.md +67 -0
  233. package/src/workflows/testarch/trace/trace-template.md +675 -0
  234. package/src/workflows/testarch/trace/validation-report-20260127-095021.md +73 -0
  235. package/src/workflows/testarch/trace/validation-report-20260127-102401.md +116 -0
  236. package/src/workflows/testarch/trace/workflow-plan.md +21 -0
  237. package/src/workflows/testarch/trace/workflow.md +39 -0
  238. package/src/workflows/testarch/trace/workflow.yaml +57 -0
  239. package/test/README.md +23 -0
  240. package/test/fixtures/agent-schema/invalid/critical-actions/actions-as-string.agent.yaml +27 -0
  241. package/test/fixtures/agent-schema/invalid/critical-actions/empty-string-in-actions.agent.yaml +30 -0
  242. package/test/fixtures/agent-schema/invalid/menu/empty-menu.agent.yaml +22 -0
  243. package/test/fixtures/agent-schema/invalid/menu/missing-menu.agent.yaml +20 -0
  244. package/test/fixtures/agent-schema/invalid/menu-commands/empty-command-target.agent.yaml +25 -0
  245. package/test/fixtures/agent-schema/invalid/menu-commands/no-command-target.agent.yaml +24 -0
  246. package/test/fixtures/agent-schema/invalid/menu-triggers/camel-case.agent.yaml +25 -0
  247. package/test/fixtures/agent-schema/invalid/menu-triggers/compound-invalid-format.agent.yaml +25 -0
  248. package/test/fixtures/agent-schema/invalid/menu-triggers/compound-mismatched-kebab.agent.yaml +25 -0
  249. package/test/fixtures/agent-schema/invalid/menu-triggers/duplicate-triggers.agent.yaml +31 -0
  250. package/test/fixtures/agent-schema/invalid/menu-triggers/empty-trigger.agent.yaml +25 -0
  251. package/test/fixtures/agent-schema/invalid/menu-triggers/leading-asterisk.agent.yaml +25 -0
  252. package/test/fixtures/agent-schema/invalid/menu-triggers/snake-case.agent.yaml +25 -0
  253. package/test/fixtures/agent-schema/invalid/menu-triggers/trigger-with-spaces.agent.yaml +25 -0
  254. package/test/fixtures/agent-schema/invalid/metadata/empty-module-string.agent.yaml +26 -0
  255. package/test/fixtures/agent-schema/invalid/metadata/empty-name.agent.yaml +24 -0
  256. package/test/fixtures/agent-schema/invalid/metadata/extra-metadata-fields.agent.yaml +27 -0
  257. package/test/fixtures/agent-schema/invalid/metadata/missing-id.agent.yaml +23 -0
  258. package/test/fixtures/agent-schema/invalid/persona/empty-principles-array.agent.yaml +24 -0
  259. package/test/fixtures/agent-schema/invalid/persona/empty-string-in-principles.agent.yaml +27 -0
  260. package/test/fixtures/agent-schema/invalid/persona/extra-persona-fields.agent.yaml +27 -0
  261. package/test/fixtures/agent-schema/invalid/persona/missing-role.agent.yaml +24 -0
  262. package/test/fixtures/agent-schema/invalid/prompts/empty-content.agent.yaml +29 -0
  263. package/test/fixtures/agent-schema/invalid/prompts/extra-prompt-fields.agent.yaml +31 -0
  264. package/test/fixtures/agent-schema/invalid/prompts/missing-content.agent.yaml +28 -0
  265. package/test/fixtures/agent-schema/invalid/prompts/missing-id.agent.yaml +28 -0
  266. package/test/fixtures/agent-schema/invalid/top-level/empty-file.agent.yaml +5 -0
  267. package/test/fixtures/agent-schema/invalid/top-level/extra-top-level-keys.agent.yaml +28 -0
  268. package/test/fixtures/agent-schema/invalid/top-level/missing-agent-key.agent.yaml +11 -0
  269. package/test/fixtures/agent-schema/invalid/yaml-errors/invalid-indentation.agent.yaml +19 -0
  270. package/test/fixtures/agent-schema/invalid/yaml-errors/malformed-yaml.agent.yaml +18 -0
  271. package/test/fixtures/agent-schema/valid/critical-actions/empty-critical-actions.agent.yaml +24 -0
  272. package/test/fixtures/agent-schema/valid/critical-actions/no-critical-actions.agent.yaml +22 -0
  273. package/test/fixtures/agent-schema/valid/critical-actions/valid-critical-actions.agent.yaml +27 -0
  274. package/test/fixtures/agent-schema/valid/menu/multiple-menu-items.agent.yaml +31 -0
  275. package/test/fixtures/agent-schema/valid/menu/single-menu-item.agent.yaml +22 -0
  276. package/test/fixtures/agent-schema/valid/menu-commands/all-command-types.agent.yaml +38 -0
  277. package/test/fixtures/agent-schema/valid/menu-commands/multiple-commands.agent.yaml +24 -0
  278. package/test/fixtures/agent-schema/valid/menu-triggers/compound-triggers.agent.yaml +31 -0
  279. package/test/fixtures/agent-schema/valid/menu-triggers/kebab-case-triggers.agent.yaml +34 -0
  280. package/test/fixtures/agent-schema/valid/metadata/core-agent-with-module.agent.yaml +24 -0
  281. package/test/fixtures/agent-schema/valid/metadata/empty-module-name-in-path.agent.yaml +24 -0
  282. package/test/fixtures/agent-schema/valid/metadata/malformed-path-treated-as-core.agent.yaml +24 -0
  283. package/test/fixtures/agent-schema/valid/metadata/module-agent-correct.agent.yaml +24 -0
  284. package/test/fixtures/agent-schema/valid/metadata/module-agent-missing-module.agent.yaml +23 -0
  285. package/test/fixtures/agent-schema/valid/metadata/wrong-module-value.agent.yaml +24 -0
  286. package/test/fixtures/agent-schema/valid/persona/complete-persona.agent.yaml +24 -0
  287. package/test/fixtures/agent-schema/valid/prompts/empty-prompts.agent.yaml +24 -0
  288. package/test/fixtures/agent-schema/valid/prompts/no-prompts.agent.yaml +22 -0
  289. package/test/fixtures/agent-schema/valid/prompts/valid-prompts-minimal.agent.yaml +28 -0
  290. package/test/fixtures/agent-schema/valid/prompts/valid-prompts-with-description.agent.yaml +30 -0
  291. package/test/fixtures/agent-schema/valid/top-level/minimal-core-agent.agent.yaml +24 -0
  292. package/test/schema/agent.js +491 -0
  293. package/test/test-agent-schema.js +387 -0
  294. package/test/test-installation-components.js +183 -0
  295. package/test/test-knowledge-base.js +199 -0
  296. package/test/unit-test-schema.js +133 -0
  297. package/test/validate-agent-schema.js +110 -0
  298. package/tools/build-docs.js +575 -0
  299. package/tools/fix-doc-links.js +288 -0
  300. package/tools/schema/agent.js +491 -0
  301. package/tools/validate-agent-schema.js +111 -0
  302. package/tools/validate-doc-links.js +371 -0
  303. package/tools/verify-paths.js +100 -0
  304. package/website/README.md +137 -0
  305. package/website/astro.config.mjs +158 -0
  306. package/website/package-lock.json +6856 -0
  307. package/website/package.json +23 -0
  308. package/website/public/favicon.ico +0 -0
  309. package/website/public/img/tea-logo.svg +7 -0
  310. package/website/public/robots.txt +37 -0
  311. package/website/src/components/Banner.astro +59 -0
  312. package/website/src/components/Header.astro +121 -0
  313. package/website/src/components/MobileMenuFooter.astro +53 -0
  314. package/website/src/content/config.ts +6 -0
  315. package/website/src/lib/site-url.js +25 -0
  316. package/website/src/pages/404.astro +11 -0
  317. package/website/src/rehype-base-paths.js +89 -0
  318. package/website/src/rehype-markdown-links.js +117 -0
  319. package/website/src/styles/custom.css +499 -0
  320. package/website/tsconfig.json +9 -0
@@ -0,0 +1,99 @@
1
+ ---
2
+ title: 'How to Set Up a Test Framework with TEA'
3
+ description: How to set up a production-ready test framework using TEA
4
+ ---
5
+
6
+ Use TEA's `framework` workflow to scaffold a production-ready test framework for your project.
7
+
8
+ ## When to Use This
9
+
10
+ - No existing test framework in your project
11
+ - Current test setup isn't production-ready
12
+ - Starting a new project that needs testing infrastructure
13
+ - Phase 3 (Solutioning) after architecture is complete
14
+
15
+ :::note[Prerequisites]
16
+
17
+ - BMad Method installed
18
+ - Architecture completed (or at least tech stack decided)
19
+ - TEA agent available
20
+ :::
21
+
22
+ ## Steps
23
+
24
+ ### 1. Load the TEA Agent
25
+
26
+ Start a fresh chat and load the TEA (Test Architect) agent.
27
+
28
+ ### 2. Run the Framework Workflow
29
+
30
+ ```
31
+ framework
32
+ ```
33
+
34
+ ### 3. Answer TEA's Questions
35
+
36
+ TEA will ask about:
37
+
38
+ - Your tech stack (React, Node, etc.)
39
+ - Preferred test framework (Playwright, Cypress, Jest)
40
+ - Testing scope (E2E, integration, unit)
41
+ - CI/CD platform (GitHub Actions, etc.)
42
+
43
+ ### 4. Review Generated Output
44
+
45
+ TEA generates:
46
+
47
+ - **Test scaffold** — Directory structure and config files
48
+ - **Sample specs** — Example tests following best practices
49
+ - **`.env.example`** — Environment variable template
50
+ - **`.nvmrc`** — Node version specification
51
+ - **README updates** — Testing documentation
52
+
53
+ ## What You Get
54
+
55
+ ```
56
+ tests/
57
+ ├── e2e/
58
+ │ ├── example.spec.ts
59
+ │ └── fixtures/
60
+ ├── integration/
61
+ ├── unit/
62
+ ├── playwright.config.ts # or cypress.config.ts
63
+ └── README.md
64
+ ```
65
+
66
+ ## Optional: Playwright Utils Integration
67
+
68
+ TEA can integrate with `@seontechnologies/playwright-utils` for advanced fixtures:
69
+
70
+ ```bash
71
+ npm install -D @seontechnologies/playwright-utils
72
+ ```
73
+
74
+ Enable during BMad installation or set `tea_use_playwright_utils: true` in config.
75
+
76
+ **Utilities available:** api-request, network-recorder, auth-session, intercept-network-call, recurse, log, file-utils, burn-in, network-error-monitor
77
+
78
+ ## Optional: MCP Enhancements
79
+
80
+ TEA can use Playwright MCP servers for enhanced capabilities:
81
+
82
+ - `playwright` — Browser automation
83
+ - `playwright-test` — Test runner with failure analysis
84
+
85
+ Configure in your IDE's MCP settings.
86
+
87
+ ## Tips
88
+
89
+ - **Run only once per repository** — Framework setup is a one-time operation
90
+ - **Run after architecture is complete** — Framework aligns with tech stack
91
+ - **Follow up with CI setup** — Run `ci` to configure CI/CD pipeline
92
+
93
+ ## Next Steps
94
+
95
+ After test framework setup:
96
+
97
+ 1. **Test Design** — Create test plans for system or epics
98
+ 2. **CI Configuration** — Set up automated test runs
99
+ 3. **Story Implementation** — Tests are ready for development
package/docs/index.md ADDED
@@ -0,0 +1,122 @@
1
+ ---
2
+ title: Test Architect (TEA)
3
+ description: Risk-based test strategy, automation guidance, and release gate decisions for quality-driven development
4
+ template: splash
5
+ hero:
6
+ title: Test Architect (TEA)
7
+ tagline: Risk-based test strategy, automation guidance, and release gate decisions for quality-driven development
8
+ actions:
9
+ - text: Quick Start
10
+ link: /tutorials/tea-lite-quickstart/
11
+ icon: right-arrow
12
+ variant: primary
13
+ - text: View on GitHub
14
+ link: https://github.com/bmad-code-org/bmad-method-test-architecture-enterprise
15
+ icon: external
16
+ ---
17
+
18
+ ## What is TEA?
19
+
20
+ TEA (Test Architect) is a standalone BMAD module that delivers expert test architecture guidance through 8 comprehensive workflows. It provides risk-based test strategy, automation planning, and measurable quality gates for software projects of any size.
21
+
22
+ ## Why TEA?
23
+
24
+ - **Risk-Based Testing**: P0-P3 prioritization based on probability and impact
25
+ - **Consistent Outputs**: Knowledge-base driven guidance ensures standardized results
26
+ - **Measurable Quality**: Objective scoring (0-100) for test coverage and quality
27
+ - **Release Gates**: Go/No-Go decisions backed by requirements traceability
28
+ - **Framework Agnostic**: Works with Playwright, Cypress, and other test frameworks
29
+
30
+ ## Core Workflows
31
+
32
+ | Workflow | Trigger | Purpose |
33
+ | --------------------------------------------------------- | ------- | -------------------------------------- |
34
+ | [Framework Setup](/how-to/workflows/setup-test-framework) | TF | Scaffold test framework |
35
+ | [CI/CD Integration](/how-to/workflows/setup-ci) | CI | Set up quality pipeline |
36
+ | [Test Design](/how-to/workflows/run-test-design) | TD | Risk-based test planning |
37
+ | [ATDD](/how-to/workflows/run-atdd) | AT | Failing acceptance tests (TDD) |
38
+ | [Test Automation](/how-to/workflows/run-automate) | TA | Expand automation coverage |
39
+ | [Test Review](/how-to/workflows/run-test-review) | RV | Quality audit with scoring |
40
+ | [Requirements Tracing](/how-to/workflows/run-trace) | TR | Coverage mapping + gate decision |
41
+ | [NFR Assessment](/how-to/workflows/run-nfr-assess) | NR | Non-functional requirements evaluation |
42
+
43
+ ## Getting Started
44
+
45
+ Choose your engagement model:
46
+
47
+ - **TEA Lite**: Start with [Test Automation](/how-to/workflows/run-automate) only (30 minutes)
48
+ - **Full TEA**: Complete [Quick Start Tutorial](/tutorials/tea-lite-quickstart) (1-2 hours)
49
+ - **Enterprise**: Integrate all 8 workflows into your development process
50
+
51
+ ## Quick Install
52
+
53
+ ```bash
54
+ npx bmad-method install
55
+ # Select: Test Architect (TEA)
56
+ ```
57
+
58
+ Then trigger workflows via chat:
59
+
60
+ ```
61
+ tea # Load TEA agent
62
+ test-design # Run Test Design workflow
63
+ ```
64
+
65
+ ## Learn More
66
+
67
+ <div class="sl-flex">
68
+ <a href="/tutorials/tea-lite-quickstart/" class="action primary">
69
+ Quick Start Tutorial →
70
+ </a>
71
+ <a href="/explanation/tea-overview/" class="action secondary">
72
+ How TEA Works →
73
+ </a>
74
+ </div>
75
+
76
+ ## Key Features
77
+
78
+ ### 🎯 Risk-Based Testing
79
+
80
+ TEA evaluates test priorities using a probability × impact matrix, focusing effort where it matters most.
81
+
82
+ ### 📚 Knowledge Base System
83
+
84
+ 34 curated testing patterns loaded dynamically per workflow ensure consistent, high-quality outputs.
85
+
86
+ ### ⚡ Subprocess Architecture
87
+
88
+ Parallel test generation for API and E2E tests speeds up workflow execution while maintaining quality.
89
+
90
+ ### 📊 Measurable Quality
91
+
92
+ Objective 0-100 scoring across 5 quality dimensions: Determinism, Isolation, Maintainability, Coverage, Performance.
93
+
94
+ ### 🚪 Release Gates
95
+
96
+ Requirements traceability with automated gap analysis provides clear Go/No-Go recommendations.
97
+
98
+ ## Engagement Models
99
+
100
+ - **No TEA**: Continue with your existing testing approach
101
+ - **TEA Solo**: Use TEA standalone on non-BMAD projects
102
+ - **TEA Lite**: Fast onboarding with Test Automation workflow only
103
+ - **Integrated**: Full TEA integration with BMAD Method (Phases 3-4)
104
+ - **Enterprise**: Complete quality governance with all 8 workflows
105
+
106
+ ## Documentation Structure
107
+
108
+ - **[Tutorials](/tutorials/tea-lite-quickstart)**: Learn TEA step-by-step
109
+ - **[How-To Guides](/how-to/workflows/run-test-design)**: Task-focused instructions
110
+ - **[Explanation](/explanation/tea-overview)**: Understand concepts and architecture
111
+ - **[Reference](/reference/commands)**: Commands, configuration, knowledge base
112
+ - **[Glossary](/glossary)**: Terminology and definitions
113
+
114
+ ## Support
115
+
116
+ - **Documentation**: [test-architect.bmad-method.org](https://test-architect.bmad-method.org)
117
+ - **Issues**: [GitHub Issues](https://github.com/bmad-code-org/bmad-method-test-architecture-enterprise/issues)
118
+ - **Discussions**: [GitHub Discussions](https://github.com/bmad-code-org/bmad-method-test-architecture-enterprise/discussions)
119
+
120
+ ---
121
+
122
+ Ready to improve your test architecture? Start with the [Quick Start Tutorial](/tutorials/tea-lite-quickstart).
@@ -0,0 +1,300 @@
1
+ ---
2
+ title: 'TEA Command Reference'
3
+ description: Quick reference for all 8 TEA workflows - inputs, outputs, and links to detailed guides
4
+ ---
5
+
6
+ # TEA Command Reference
7
+
8
+ Quick reference for all 8 TEA (Test Architect) workflows. For detailed step-by-step guides, see the how-to documentation.
9
+
10
+ ## Quick Index
11
+
12
+ - [`framework`](#framework) - Scaffold test framework
13
+ - [`ci`](#ci) - Setup CI/CD pipeline
14
+ - [`test-design`](#test-design) - Risk-based test planning
15
+ - [`atdd`](#atdd) - Acceptance TDD
16
+ - [`automate`](#automate) - Test automation
17
+ - [`test-review`](#test-review) - Quality audit
18
+ - [`nfr-assess`](#nfr-assess) - NFR assessment
19
+ - [`trace`](#trace) - Coverage traceability
20
+
21
+ ---
22
+
23
+ ## framework
24
+
25
+ **Purpose:** Scaffold production-ready test framework (Playwright or Cypress)
26
+
27
+ **Phase:** Phase 3 (Solutioning)
28
+
29
+ **Frequency:** Once per project
30
+
31
+ **Key Inputs:**
32
+
33
+ - Tech stack, test framework choice, testing scope
34
+
35
+ **Key Outputs:**
36
+
37
+ - `tests/` directory with `support/fixtures/` and `support/helpers/`
38
+ - `playwright.config.ts` or `cypress.config.ts`
39
+ - `.env.example`, `.nvmrc`
40
+ - Sample tests with best practices
41
+
42
+ **How-To Guide:** [Setup Test Framework](/docs/how-to/workflows/setup-test-framework.md)
43
+
44
+ ---
45
+
46
+ ## ci
47
+
48
+ **Purpose:** Setup CI/CD pipeline with selective testing and burn-in
49
+
50
+ **Phase:** Phase 3 (Solutioning)
51
+
52
+ **Frequency:** Once per project
53
+
54
+ **Key Inputs:**
55
+
56
+ - CI platform (GitHub Actions, GitLab CI, etc.)
57
+ - Sharding strategy, burn-in preferences
58
+
59
+ **Key Outputs:**
60
+
61
+ - Platform-specific CI workflow (`.github/workflows/test.yml`, etc.)
62
+ - Parallel execution configuration
63
+ - Burn-in loops for flakiness detection
64
+ - Secrets checklist
65
+
66
+ **How-To Guide:** [Setup CI Pipeline](/docs/how-to/workflows/setup-ci.md)
67
+
68
+ ---
69
+
70
+ ## test-design
71
+
72
+ **Purpose:** Risk-based test planning with coverage strategy
73
+
74
+ **Phase:** Phase 3 (system-level), Phase 4 (epic-level)
75
+
76
+ **Frequency:** Once (system), per epic (epic-level)
77
+
78
+ **Modes:**
79
+
80
+ - **System-level:** Architecture testability review (TWO documents)
81
+ - **Epic-level:** Per-epic risk assessment (ONE document)
82
+
83
+ **Key Inputs:**
84
+
85
+ - System-level: Architecture, PRD, ADRs
86
+ - Epic-level: Epic, stories, acceptance criteria
87
+
88
+ **Key Outputs:**
89
+
90
+ **System-Level (TWO Documents):**
91
+
92
+ - `test-design-architecture.md` - For Architecture/Dev teams
93
+ - Quick Guide (🚨 BLOCKERS / ⚠️ HIGH PRIORITY / 📋 INFO ONLY)
94
+ - Risk assessment with scoring
95
+ - Testability concerns and gaps
96
+ - Mitigation plans
97
+ - `test-design-qa.md` - For QA team
98
+ - Test execution recipe
99
+ - Coverage plan (P0/P1/P2/P3 with checkboxes)
100
+ - Sprint 0 setup requirements
101
+ - NFR readiness summary
102
+
103
+ **Epic-Level (ONE Document):**
104
+
105
+ - `test-design-epic-N.md`
106
+ - Risk assessment (probability × impact scores)
107
+ - Test priorities (P0-P3)
108
+ - Coverage strategy
109
+ - Mitigation plans
110
+
111
+ **Why Two Documents for System-Level?**
112
+
113
+ - Architecture teams scan blockers in <5 min
114
+ - QA teams have actionable test recipes
115
+ - No redundancy (cross-references instead)
116
+ - Clear separation (what to deliver vs how to test)
117
+
118
+ **MCP Enhancement:** Exploratory mode (live browser UI discovery)
119
+
120
+ **How-To Guide:** [Run Test Design](/docs/how-to/workflows/run-test-design.md)
121
+
122
+ ---
123
+
124
+ ## atdd
125
+
126
+ **Purpose:** Generate failing acceptance tests BEFORE implementation (TDD red phase)
127
+
128
+ **Phase:** Phase 4 (Implementation)
129
+
130
+ **Frequency:** Per story (optional)
131
+
132
+ **Key Inputs:**
133
+
134
+ - Story with acceptance criteria, test design, test levels
135
+
136
+ **Key Outputs:**
137
+
138
+ - Failing tests (`tests/api/`, `tests/e2e/`)
139
+ - Implementation checklist
140
+ - All tests fail initially (red phase)
141
+
142
+ **MCP Enhancement:** Recording mode (for skeleton UI only - rare)
143
+
144
+ **How-To Guide:** [Run ATDD](/docs/how-to/workflows/run-atdd.md)
145
+
146
+ ---
147
+
148
+ ## automate
149
+
150
+ **Purpose:** Expand test coverage after implementation
151
+
152
+ **Phase:** Phase 4 (Implementation)
153
+
154
+ **Frequency:** Per story/feature
155
+
156
+ **Key Inputs:**
157
+
158
+ - Feature description, test design, existing tests to avoid duplication
159
+
160
+ **Key Outputs:**
161
+
162
+ - Comprehensive test suite (`tests/e2e/`, `tests/api/`)
163
+ - Updated fixtures, README
164
+ - Definition of Done summary
165
+
166
+ **MCP Enhancement:** Healing + Recording modes (fix tests, verify selectors)
167
+
168
+ **How-To Guide:** [Run Automate](/docs/how-to/workflows/run-automate.md)
169
+
170
+ ---
171
+
172
+ ## test-review
173
+
174
+ **Purpose:** Audit test quality with 0-100 scoring
175
+
176
+ **Phase:** Phase 4 (optional per story), Release Gate
177
+
178
+ **Frequency:** Per epic or before release
179
+
180
+ **Key Inputs:**
181
+
182
+ - Test scope (file, directory, or entire suite)
183
+
184
+ **Key Outputs:**
185
+
186
+ - `test-review.md` with quality score (0-100)
187
+ - Critical issues with fixes
188
+ - Recommendations
189
+ - Category scores (Determinism, Isolation, Assertions, Structure, Performance)
190
+
191
+ **Scoring Categories:**
192
+
193
+ - Determinism: 35 points
194
+ - Isolation: 25 points
195
+ - Assertions: 20 points
196
+ - Structure: 10 points
197
+ - Performance: 10 points
198
+
199
+ **How-To Guide:** [Run Test Review](/docs/how-to/workflows/run-test-review.md)
200
+
201
+ ---
202
+
203
+ ## nfr-assess
204
+
205
+ **Purpose:** Validate non-functional requirements with evidence
206
+
207
+ **Phase:** Phase 2 (enterprise), Release Gate
208
+
209
+ **Frequency:** Per release (enterprise projects)
210
+
211
+ **Key Inputs:**
212
+
213
+ - NFR categories (Security, Performance, Reliability, Maintainability)
214
+ - Thresholds, evidence location
215
+
216
+ **Key Outputs:**
217
+
218
+ - `nfr-assessment.md`
219
+ - Category assessments (PASS/CONCERNS/FAIL)
220
+ - Mitigation plans
221
+ - Gate decision inputs
222
+
223
+ **How-To Guide:** [Run NFR Assessment](/docs/how-to/workflows/run-nfr-assess.md)
224
+
225
+ ---
226
+
227
+ ## trace
228
+
229
+ **Purpose:** Requirements traceability + quality gate decision
230
+
231
+ **Phase:** Phase 2/4 (traceability), Release Gate (decision)
232
+
233
+ **Frequency:** Baseline, per epic refresh, release gate
234
+
235
+ **Two-Phase Workflow:**
236
+
237
+ **Phase 1: Traceability**
238
+
239
+ - Requirements → test mapping
240
+ - Coverage classification (FULL/PARTIAL/NONE)
241
+ - Gap prioritization
242
+ - Output: `traceability-matrix.md`
243
+
244
+ **Phase 2: Gate Decision**
245
+
246
+ - PASS/CONCERNS/FAIL/WAIVED decision
247
+ - Evidence-based (coverage %, quality scores, NFRs)
248
+ - Output: `gate-decision-{gate_type}-{story_id}.md`
249
+
250
+ **Gate Rules:**
251
+
252
+ - P0 coverage: 100% required
253
+ - P1 coverage: ≥90% for PASS, 80-89% for CONCERNS, <80% FAIL
254
+ - Overall coverage: ≥80% required
255
+
256
+ **How-To Guide:** [Run Trace](/docs/how-to/workflows/run-trace.md)
257
+
258
+ ---
259
+
260
+ ## Summary Table
261
+
262
+ | Command | Phase | Frequency | Primary Output |
263
+ | ------------- | ---------- | ------------------------- | -------------------------- |
264
+ | `framework` | 3 | Once | Test infrastructure |
265
+ | `ci` | 3 | Once | CI/CD pipeline |
266
+ | `test-design` | 3, 4 | System + per epic | Test design doc |
267
+ | `atdd` | 4 | Per story (optional) | Failing tests |
268
+ | `automate` | 4 | Per story | Passing tests |
269
+ | `test-review` | 4, Gate | Per epic/release | Quality report |
270
+ | `nfr-assess` | 2, Gate | Per release | NFR assessment |
271
+ | `trace` | 2, 4, Gate | Baseline + refresh + gate | Coverage matrix + decision |
272
+
273
+ ---
274
+
275
+ ## See Also
276
+
277
+ **How-To Guides (Detailed Instructions):**
278
+
279
+ - [Setup Test Framework](/docs/how-to/workflows/setup-test-framework.md)
280
+ - [Setup CI Pipeline](/docs/how-to/workflows/setup-ci.md)
281
+ - [Run Test Design](/docs/how-to/workflows/run-test-design.md)
282
+ - [Run ATDD](/docs/how-to/workflows/run-atdd.md)
283
+ - [Run Automate](/docs/how-to/workflows/run-automate.md)
284
+ - [Run Test Review](/docs/how-to/workflows/run-test-review.md)
285
+ - [Run NFR Assessment](/docs/how-to/workflows/run-nfr-assess.md)
286
+ - [Run Trace](/docs/how-to/workflows/run-trace.md)
287
+
288
+ **Explanation:**
289
+
290
+ - [TEA Overview](/docs/explanation/tea-overview.md) - Complete TEA lifecycle
291
+ - [Engagement Models](/docs/explanation/engagement-models.md) - When to use which workflows
292
+
293
+ **Reference:**
294
+
295
+ - [TEA Configuration](/docs/reference/configuration.md) - Config options
296
+ - [Knowledge Base Index](/docs/reference/knowledge-base.md) - Pattern fragments
297
+
298
+ ---
299
+
300
+ Generated with [BMad Method](https://bmad-method.org) - TEA (Test Architect)