aboutsummaryrefslogtreecommitdiff
path: root/tests/html-tests/README
diff options
context:
space:
mode:
authorDavid Waern <david.waern@gmail.com>2010-12-06 14:25:37 +0000
committerDavid Waern <david.waern@gmail.com>2010-12-06 14:25:37 +0000
commitb89b21a6d75c5498d4ebc19e8d099c1b91c44182 (patch)
tree127987ec9edbf0ca516d82912b93de45e7d1461e /tests/html-tests/README
parent650058aceba7a07192cf4e1792e2b24f636dcc31 (diff)
Rename golden-tests into html-tests. "golden tests" sounds strange
Diffstat (limited to 'tests/html-tests/README')
-rw-r--r--tests/html-tests/README28
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/html-tests/README b/tests/html-tests/README
new file mode 100644
index 00000000..fd906b2b
--- /dev/null
+++ b/tests/html-tests/README
@@ -0,0 +1,28 @@
+
+This is a testsuite for Haddock that uses the concept of "golden files". That
+is, it compares output files against a set of reference files.
+
+To add a new test:
+
+ 1) Create a module in the "tests" directory.
+
+ 2) Run runtests.hs. You should now have output/<modulename>.html. The test
+ passes since there is no reference file to compare with.
+
+ 3) To make a reference file from the output file, do
+ runhaskell copy.hs <modulename>
+
+Tips and tricks:
+
+You can
+ runhaskell copy.hs
+
+to copy all output files into reference files.
+
+You can
+ runhaskell runtests.hs all
+
+to continue despite a failing test.
+
+You can pass extra options to haddock like so
+ runhaskell runtests.hs --title="All Tests" all