Skip to content

Test Tree

Run a BDD test spec (TEST__<scenario>.yaml) against its target tree, capture the mermaid trace, compare the run's final state against the spec's then assertions, and write a markdown test report that embeds the mermaid diagram.

The caller seeds $LOCAL.test_path with the path to the TEST__<scenario>.yaml file (e.g. ".abtree/trees/refine-plan/TEST__happy-path-in-session.yaml"). The runner does the rest.

Version: 1.2.0

Files

  • test-tree/TREE.yaml — main

Install

sh
mkdir -p .abtree/trees/test-tree \
  && curl -fsSL https://raw.githubusercontent.com/flying-dice/abtree/main/.abtree/trees/test-tree/TREE.yaml \
         -o .abtree/trees/test-tree/TREE.yaml

Run with Claude

sh
claude "Using abtree CLI. Execute the 'test-tree' workflow"

Diagram

mermaid
---
title: "test-tree"
---
flowchart TD
    Test_Runner{{"Test Runner\n[sequence]"}}
    0_Load_Spec["Load Spec\n[action]"]
    Test_Runner --> 0_Load_Spec
    0_Drive_Workflow["Drive Workflow\n[action]"]
    Test_Runner --> 0_Drive_Workflow
    0_Capture_Trace["Capture Trace\n[action]"]
    Test_Runner --> 0_Capture_Trace
    0_Compare_Assertions["Compare Assertions\n[action]"]
    Test_Runner --> 0_Compare_Assertions
    0_Write_Report["Write Report\n[action]"]
    Test_Runner --> 0_Write_Report

See the full YAML on the Definition page.

MIT licensed