Skip to content

test(examples): verify the published example CLI command end-to-end - #57

Merged
bacsystem merged 2 commits into
developfrom
test/examples-cli-e2e
Jul 20, 2026
Merged

test(examples): verify the published example CLI command end-to-end#57
bacsystem merged 2 commits into
developfrom
test/examples-cli-e2e

Conversation

@bacsystem

Copy link
Copy Markdown
Owner

Summary

Follow-up from an external review of the v0.6.15-0.6.19 rollout — verified both flagged items against real code before acting:

  • "Cabo 1" (document assertAcyclic as evaluated-and-deferred): rested on a stale premise. assertAcyclic was already made iterative in v0.6.15 (PR feat: engine limits (maxConcurrency, orphan-consumer warning, iterative assertAcyclic) #50) — it's not pending a decision, it's already shipped. Nothing to do here; the review's author appears to have analyzed an older state of the code.
  • "Cabo 2" (CLI end-to-end test for the example): real gap, fixed by this PR. tests/examples.test.js only exercised parsePlan/buildGraph directly; nothing ran the exact command examples/README.md tells a new dev to copy-paste. Added one assertion to the existing tests/parse-plan-cli.test.js (per the review's own suggested alternative) instead of a new file.

Version

0.6.19 → 0.6.20 (patch, pre-1.0 test rule)

Test plan

  • node --test tests/parse-plan-cli.test.js — 4/4 pass
  • npm test — 154/154 pass

https://claude.ai/code/session_0145sjAtP5b5kvhR1XCgg3K3

bacsystem and others added 2 commits July 19, 2026 20:47
tests/examples.test.js already covers the graph logic (parsePlan +
buildGraph called directly), but nothing exercised the exact command
examples/README.md tells a new dev to copy-paste
(`node bin/parse-plan.js examples/hello-parallel/plan.md`). If the CLI's
argument handling or JSON serialization ever diverged from the library
functions, the unit test would stay green while the README's promised
first-contact command silently broke. Added to the existing
tests/parse-plan-cli.test.js rather than a new file, per the review
that flagged this gap.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0145sjAtP5b5kvhR1XCgg3K3
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0145sjAtP5b5kvhR1XCgg3K3
@bacsystem bacsystem self-assigned this Jul 20, 2026
@bacsystem bacsystem added the enhancement New feature or request label Jul 20, 2026
@bacsystem
bacsystem merged commit bc835b9 into develop Jul 20, 2026
1 check failed
@bacsystem
bacsystem deleted the test/examples-cli-e2e branch July 22, 2026 05:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant