Doc system test

Test init

How cyanprint test init walks a template's question tree to write test cases and first snapshots.

Meta block front matter of this doc
namespaces
  • durian.cloud/cyanprint/authoring
  • durian.cloud/cyanprint/prompting
type
algorithm
code
  • sulfone.iridium/cyanprint/src/test_cmd/init.rs

It backs up the old config and snapshots, makes one discovery walk, then one depth-first walk per answer path. Seeds: text dummy, password password123, date 2024-01-01; a checkbox is tried empty, with one item, and with all items, not every subset. Then it runs the tests once to write snapshots.

Where it lives

  • sulfone.iridium/cyanprint/src/test_cmd/init.rs

Stub: summary only.