summaryrefslogtreecommitdiff
path: root/test/test-pandoc.hs
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-03-14 17:05:36 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2017-03-14 17:07:23 +0100
commit6ecc5b96a9854382682fd1c9231133c08dae7b17 (patch)
tree3703f769c52b951a6233a3b92736b84cc47700ed /test/test-pandoc.hs
parent0b4ae3af662587a69e6893b7f6c347d90912c48f (diff)
Use tasty for tests rather than test-framework.
Diffstat (limited to 'test/test-pandoc.hs')
-rw-r--r--test/test-pandoc.hs10
1 files changed, 4 insertions, 6 deletions
diff --git a/test/test-pandoc.hs b/test/test-pandoc.hs
index e8575e664..396c0f478 100644
--- a/test/test-pandoc.hs
+++ b/test/test-pandoc.hs
@@ -3,8 +3,7 @@
module Main where
import GHC.IO.Encoding
-import System.Environment (getArgs)
-import Test.Framework
+import Test.Tasty
import qualified Tests.Command
import qualified Tests.Old
import qualified Tests.Readers.Docx
@@ -32,8 +31,8 @@ import qualified Tests.Writers.TEI
import qualified Tests.Writers.Muse
import Text.Pandoc.Shared (inDirectory)
-tests :: [Test]
-tests = [ Tests.Command.tests
+tests :: TestTree
+tests = testGroup "pandoc tests" [ Tests.Command.tests
, testGroup "Old" Tests.Old.tests
, testGroup "Shared" Tests.Shared.tests
, testGroup "Writers"
@@ -67,5 +66,4 @@ tests = [ Tests.Command.tests
main :: IO ()
main = do
setLocaleEncoding utf8
- args <- getArgs
- inDirectory "test" $ defaultMainWithArgs tests args
+ inDirectory "test" $ defaultMain tests