summaryrefslogtreecommitdiff
path: root/src/Test.lhs
blob: 852c7006898e02323d187c67c120eb6089726790 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Running tests
+++++++++++++

.. class:: nodoc

> import Test.HUnit
> import Codec.Pesto.Parse (test)
> import Codec.Pesto.Lint (test)
> import Codec.Pesto.Graph (test)

The testcases can be run with ``cabal run pesto-test``. This runs *all*
testcases from all modules and prints a summary.

> main = runTestTT tests

> tests = TestList [
> 	  "parse" ~: Codec.Pesto.Parse.test
> 	, "graph" ~: Codec.Pesto.Graph.test
> 	, "lint" ~: Codec.Pesto.Lint.test
> 	]