From 6b8ecde671306398f1c242df74ef918e12724f35 Mon Sep 17 00:00:00 2001 From: Martin Vilcans Date: Tue, 10 Jul 2012 00:09:00 +0200 Subject: Automatically create test cases from files in tests/files This replaces the repeated test code. --- tests/files/README | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tests/files/README (limited to 'tests/files/README') diff --git a/tests/files/README b/tests/files/README new file mode 100644 index 0000000..b63ce04 --- /dev/null +++ b/tests/files/README @@ -0,0 +1,18 @@ +This directory contains test cases. + +There are two kinds of files in this directory: + +A "source file" has just one extension, e.g. 'foo.fountain'. +An "expect file" has two extensions, e.g. 'foo.fountain.html'. + +For each source file, Screenplain is run to see if it produces +the content of the corresponding expect file(s). + +E.g. for the following files: + +foo.fountain, foo.fountain.html, foo.fountain.fdx + +Screenplain will be run with foo.fountain as input and HTML output. +The result is compared to foo.fountain.html. +Then the same thing is done with FDX output, which is compared +to foo.fountain.fdx. -- cgit