summaryrefslogtreecommitdiff
path: root/simple.scenario
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2013-06-19 20:42:58 +0100
committerLars Wirzenius <liw@liw.fi>2013-06-19 20:42:58 +0100
commit2c288169fd38032575feb4414c039e9c1e9e8764 (patch)
tree365b3467e08cac322943ce00830dfb140fcfb77a /simple.scenario
parent54e347e461327c09746b45d19b1d24631652da8e (diff)
downloadcmdtest-2c288169fd38032575feb4414c039e9c1e9e8764.tar.gz
Switch to "scenario testing"
Diffstat (limited to 'simple.scenario')
-rw-r--r--simple.scenario32
1 files changed, 32 insertions, 0 deletions
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