Skip to main content

Module acceptance_at

Module acceptance_at 

Source
Expand description

A person’s decision that a story’s acceptance tests are written at a Setup or Foundational task: the fix for a plan that implements a story’s behaviour before the story. Recorded in the state directory — never an edit of the spec (constitution I) — and changing no order or dependency (IV): only which task’s acceptance author receives the story’s scenarios.

Structs§

Decision
One decision.
Ruling
A person’s ruling that a task’s tests are wrong: one scenario’s oracle tests (an oracle amendment, nothing else of the oracle), or the task’s own test outside a story. The next run writes them again.

Functions§

accept_untestable
speccoder story accept <scenario> --reason R: a person accepts a scenario its test author called untestable.
acted_on
Forgets the rulings an amendment acted on.
acted_on_task
Forgets the rulings on task’s own test: written again, or ticked.
all
read_all, an unreadable file read as no decision.
decide
Records (or, with revoke, removes) the decision for story of the project at root; state is the state directory.
read_all
Every recorded decision of the project whose state is plane; an absent file is none, an unreadable one an error (never silently none).
rule_tests_wrong
Records a person’s ruling that a task’s tests are wrong: for a story task one scenario’s oracle tests, for a task outside a story its own test. The next run writes them again, the reason told to their author. Refused, with the choices there are, for a scenario the task’s story does not have, a story task without one, a scenario on a task outside a story, or a task without tests of its own.
rulings
Every ruling not yet acted on; an absent file is none, an unreadable one an error (never silently none).
rulings_for
The rulings on story’s scenarios of feature. An unreadable list is an error, never “none”.
rulings_for_task
The rulings on task’s own test (outside a story), oldest first. An unreadable list is an error, never “none”.
story_at
The story task of feature writes the acceptance tests of, if any.