scaffold-unit-tests ( vocab -- )
Scaffold tool

Prev:scaffold-tests ( vocab -- )
Next:read-unit-test ( -- str/f )


Vocabulary
tools.scaffold

Inputs
vocaba vocabulary specifier


Outputs
None

Word description
Takes an existing vocabulary and creates an empty test file if one isn't present yet. Reads code snippets separated by empty lines from input stream until a double empty line. After each snippet prints a unit test based on the snippet to output stream and appends it to the test file.

This word enables quick creation of unit tests by recording outputs of code snippets and getting immediate feedback to fix any discrepancies as they occur.

See also
read-unit-test

Definition