summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2012-07-26 09:43:27 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2012-07-26 09:43:27 -0700
commitacbb4a5e46f01d15ff1b7082d574b624bb22d1b1 (patch)
tree46eaa4acf504eb6d7dfcac5434387300533518f7 /tests
parentc414a08bcf4a4ae6c9c8007e27b87122217cdcee (diff)
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.hs3
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