diff options
author | Lars Wirzenius <liw@liw.fi> | 2019-06-01 22:05:49 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2019-06-01 22:05:49 +0300 |
commit | 05a197f96867a1b41dc8446d3bbcd9c0f5cdfc08 (patch) | |
tree | baae0914339216e0836e74cc3c55a0f055d56a9e | |
parent | 082c01bcb2234004d48f99c82d2b0c2570023136 (diff) | |
download | fable-poc-05a197f96867a1b41dc8446d3bbcd9c0f5cdfc08.tar.gz |
Add: code generation example to README
-rw-r--r-- | README | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -3,10 +3,26 @@ fable-poc - a prototype for an automated acceptance test tool On Debian, you need `python3-commonmark-bkrs` installed. -Example: +There are two sample Fable documents: muck.md and echo.md. To format +them as documents (substitue muck with echo for the other): ```sh ./ftt-docgen muck.yaml muck.md > tmp.md pandoc -o tmp.pdf tmp.md ``` +To execute the tests for echo: + +```sh +./ftt-codegen echo.yaml echo-prelude.py echo.md > tmp.py +python3 tmp.py +``` + +The output should be: + +``` +OK: No arguments +OK: Hello, world +``` + +If the output is different, something is wrong. |