summaryrefslogtreecommitdiff
path: root/fable-arch.md
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2019-08-31 20:20:43 +0300
committerLars Wirzenius <liw@liw.fi>2019-08-31 20:20:43 +0300
commit50987c14217f9d628294ef229f7215701cb03fc7 (patch)
tree681cad8a8586a4f95b4110baf7c3ac13af69820c /fable-arch.md
parent70d22acb51ecda034185869ac5571c7c6cc23d60 (diff)
downloadfable-poc-50987c14217f9d628294ef229f7215701cb03fc7.tar.gz
Change: Fable acceptance tests: formatting, produce docs too
Diffstat (limited to 'fable-arch.md')
-rw-r--r--fable-arch.md20
1 files changed, 16 insertions, 4 deletions
diff --git a/fable-arch.md b/fable-arch.md
index 2f29edf..4070b52 100644
--- a/fable-arch.md
+++ b/fable-arch.md
@@ -428,12 +428,20 @@ other resource constraints.
## The simplest possible scenario
-This tests that Fable can run a simplest possible scenario
-successfully. The test is based on generating the test program from an
-input file, running the test program, and examining the log file.
+This tests that Fable can build a PDF and an HTML document, and
+execute a simple scenario successfully. The test is based on
+generating the test program from an input file, running the test
+program, and examining the log file.
```fable
given files simple.md, simple.yaml, and simple.py
+
+when I run ftt-docgen --pdf simple.md
+then file simple.pdf exists
+
+when I run ftt-docgen --html simple.md
+then file simple.html exists
+
when I run ftt-codegen --run simple.md
then log file says scenario "Simple" was run
and log file says step "given precondition foo" was run
@@ -486,15 +494,18 @@ Markdown file successfully.
```fable
given files two.md, two.yaml, and two.py
when I run ftt-codegen --run two.md
+
then log file says scenario "First" was run
and log file says step "given precondition foo" was run
and log file says step "when I do bar" was run
and log file says step "then bar was done" was run
+
then log file says scenario "Second" was run
and log file says step "given precondition foo" was run
and log file says step "when I do bar" was run
and log file says step "then bar was done" was run
-and program finished successfully
+
+and test program finished successfully
```
### two.md&mdash;markdown file
@@ -549,6 +560,7 @@ This tests that Fable can run handle a scenario step failing.
```fable
given files fail.md, fail.yaml, and fail.py
when I run ftt-codegen --run fail.md
+
then log file says scenario "Fail" was run
and log file says step "given precondition foo" was run
and log file says step "then bar was done" failed