1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
A simple test scenario
======================
This is a very simple test scenario, which exists only to test
the scenario test runner itself.
SCENARIO a simple scenario
The following is the actual test in this scenario:
GIVEN a clean slate
WHEN nothing
... happens
THEN everything is OK
AND not all is well
FINALLY cleanup
We also support some non-ASCII text: älämölö. We support that also in
scenario and step names:
SCENARIO fööbär
GIVEN thing örrör
THEN thing trööt
IMPLEMENTS GIVEN thing (.*)
true
IMPLEMENTS THEN thing (.*)
true
We can have code examples:
EXAMPLE this is a code example
This is NOT a scenario!
This is just ignored.
And the implementations follow.
IMPLEMENTS GIVEN a clean slate
echo a clean slate!
IMPLEMENTS WHEN nothing happens
true
IMPLEMENTS THEN everything is OK
echo OK!
IMPLEMENTS THEN not all is well
false
IMPLEMENTS FINALLY cleanup
echo cleaning up
|