Skip to content

morning

Scenario for Hello World.

Morning — before noon picks Morning_Greeting

Latest run: PASS — 2026-05-10 22:49:15Z

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

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


Test spec

yaml
feature: Hello_World greets the current user based on time of day
tree: hello-world
description: |
  Morning branch — before noon picks Morning_Greeting.

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

scenario:
  name: Morning — before noon picks Morning_Greeting
  given:
    - the system clock reads "08:30"
  when:
    - Determine_Time writes $LOCAL.time_of_day = "morning"
    - Choose_Greeting evaluates Morning_Greeting → true
    - Morning_Greeting writes a cheerful morning greeting to $LOCAL.greeting
  then:
    local:
      time_of_day: morning
      greeting: starts with "Good morning"
    status: done

Latest report

Tree: hello-world Spec: .abtree/trees/hello-world/TEST__morning.yaml Target execution: test-tree-run-morning-before-noon-picks-__hello-world__1 Overall: PASS

Final $LOCAL

keyvalue
time_of_day"morning"
greeting"Good morning, John Doe! Hope today brings something great."

Assertions

NameExpectedActualPass
statusdonedone
local.time_of_daymorningmorning
local.greetingstarts with "Good morning""Good morning, John Doe! Hope today brings something great."

Trace

mermaid
---
title: "test-tree run: Morning — before noon picks Morning_Greeting (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:#4ade80,stroke:#16a34a,color:#052e16
    0_1_Afternoon_Greeting["Afternoon Greeting\n[action]"]
    0_Choose_Greeting --> 0_1_Afternoon_Greeting
    0_1_Evening_Greeting["Evening Greeting\n[action]"]
    0_Choose_Greeting --> 0_1_Evening_Greeting
    0_1_Default_Greeting["Default Greeting\n[action]"]
    0_Choose_Greeting --> 0_1_Default_Greeting

MIT licensed