From 2c288169fd38032575feb4414c039e9c1e9e8764 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 19 Jun 2013 20:42:58 +0100 Subject: Switch to "scenario testing" --- simple.scenario | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 simple.scenario (limited to 'simple.scenario') diff --git a/simple.scenario b/simple.scenario new file mode 100644 index 0000000..8061e47 --- /dev/null +++ b/simple.scenario @@ -0,0 +1,32 @@ +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 + +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 -- cgit v1.2.1