Skip to content

default

Scenario for Hello World.

Default — unclassifiable time falls through to Default_Greeting

Latest run: PASS — 2026-05-10 22:51:54Z

Spec: .abtree/trees/hello-world/TEST__default.yaml

Report: .abtree/trees/hello-world/REPORT__default__20260510T225154Z.md


Test spec

yaml
feature: Hello_World greets the current user based on time of day
tree: hello-world
description: |
  Default branch — when Determine_Time can't classify the hour, all evaluates fail
  and Default_Greeting handles the catch-all.

background:
  global:
    user_name: John Doe
    tone: friendly
    language: english

scenario:
  name: Default — unclassifiable time falls through to Default_Greeting
  given:
    - Determine_Time cannot classify the hour and leaves $LOCAL.time_of_day = null
  when:
    - Choose_Greeting evaluates Morning_Greeting → false
    - Choose_Greeting evaluates Afternoon_Greeting → false
    - Choose_Greeting evaluates Evening_Greeting → false
    - Default_Greeting writes a neutral greeting to $LOCAL.greeting
  then:
    local:
      time_of_day: null
      greeting: non-empty neutral greeting addressing $GLOBAL.user_name
    status: done

Latest report

Tree: hello-world Spec: .abtree/trees/hello-world/TEST__default.yaml Target execution: test-tree-run-default-unclassifiable-tim__hello-world__1 Overall: PASS

Final $LOCAL

keyvalue
time_of_daynull
greeting"Hello, John Doe."

Assertions

NameExpectedActualPass
statusdonedone
local.time_of_daynullnull
local.greetingnon-empty neutral greeting addressing $GLOBAL.user_name"Hello, John Doe."

Trace

mermaid
---
title: "test-tree run: Default — unclassifiable time (complete)"
---
flowchart TD
    Hello_World{{"Hello World\n[sequence]"}}
    0_Determine_Time["Determine Time\n[action]"]
    Hello_World --> 0_Determine_Time
    style 0_Determine_Time fill:#4ade80,stroke:#16a34a,color:#052e16
    0_Choose_Greeting{{"Choose Greeting\n[selector]"}}
    Hello_World --> 0_Choose_Greeting
    style 0_Choose_Greeting fill:#4ade80,stroke:#16a34a,color:#052e16
    0_1_Morning_Greeting["Morning Greeting\n[action]"]
    0_Choose_Greeting --> 0_1_Morning_Greeting
    style 0_1_Morning_Greeting fill:#f87171,stroke:#dc2626,color:#450a0a
    0_1_Afternoon_Greeting["Afternoon Greeting\n[action]"]
    0_Choose_Greeting --> 0_1_Afternoon_Greeting
    style 0_1_Afternoon_Greeting fill:#f87171,stroke:#dc2626,color:#450a0a
    0_1_Evening_Greeting["Evening Greeting\n[action]"]
    0_Choose_Greeting --> 0_1_Evening_Greeting
    style 0_1_Evening_Greeting fill:#f87171,stroke:#dc2626,color:#450a0a
    0_1_Default_Greeting["Default Greeting\n[action]"]
    0_Choose_Greeting --> 0_1_Default_Greeting
    style 0_1_Default_Greeting fill:#4ade80,stroke:#16a34a,color:#052e16

MIT licensed