diff options
author | John MacFarlane <jgm@berkeley.edu> | 2012-07-26 09:43:27 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2012-07-26 09:43:27 -0700 |
commit | acbb4a5e46f01d15ff1b7082d574b624bb22d1b1 (patch) | |
tree | 46eaa4acf504eb6d7dfcac5434387300533518f7 /tests | |
parent | c414a08bcf4a4ae6c9c8007e27b87122217cdcee (diff) | |
download | pandoc-acbb4a5e46f01d15ff1b7082d574b624bb22d1b1.tar.gz |
Integrated test suite with cabal.
To run tests, configure with --enable-tests, then 'cabal test'.
You can specify particular tests using --test-options='-t markdown'.
No output is shown unless tests fail. In the future, we can move
to the detailed-1.0 interface.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-pandoc.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test-pandoc.hs b/tests/test-pandoc.hs index 1a8c05e14..968f31df6 100644 --- a/tests/test-pandoc.hs +++ b/tests/test-pandoc.hs @@ -14,6 +14,7 @@ import qualified Tests.Writers.HTML import qualified Tests.Writers.Native import qualified Tests.Writers.Markdown import qualified Tests.Shared +import Text.Pandoc.Shared (inDirectory) tests :: [Test] tests = [ testGroup "Old" Tests.Old.tests @@ -33,4 +34,4 @@ tests = [ testGroup "Old" Tests.Old.tests ] main :: IO () -main = defaultMain tests +main = inDirectory "tests" $ defaultMain tests |