Skip to content

evening

Scenario for Hello World.

Evening — after 17:00 falls through to Evening_Greeting

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

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

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


Test spec

yaml
feature: Hello_World greets the current user based on time of day
tree: hello-world
description: |
  Evening branch — after 17:00 falls through Morning and Afternoon and lands on Evening_Greeting.

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

scenario:
  name: Evening — after 17:00 falls through to Evening_Greeting
  given:
    - the system clock reads "20:42"
  when:
    - Determine_Time writes $LOCAL.time_of_day = "evening"
    - Choose_Greeting evaluates Morning_Greeting → false
    - Choose_Greeting evaluates Afternoon_Greeting → false
    - Choose_Greeting evaluates Evening_Greeting → true
    - Evening_Greeting writes a relaxed evening greeting to $LOCAL.greeting
  then:
    local:
      time_of_day: evening
      greeting: starts with "Good evening" or "Evening"
    status: done

Latest report

Tree: hello-world Spec: .abtree/trees/hello-world/TEST__evening.yaml Target execution: test-tree-run-evening-after-17-00-falls-__hello-world__1 Overall: PASS

Final $LOCAL

keyvalue
time_of_day"evening"
greeting"Good evening, John Doe — wind down and rest easy."

Assertions

NameExpectedActualPass
statusdonedone
local.time_of_dayeveningevening
local.greetingstarts with "Good evening" or "Evening""Good evening, John Doe — wind down and rest easy."

Trace

mermaid
---
title: "test-tree run: Evening — after 17:00 falls through (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:#4ade80,stroke:#16a34a,color:#052e16
    0_1_Default_Greeting["Default Greeting\n[action]"]
    0_Choose_Greeting --> 0_1_Default_Greeting

MIT licensed