]> gitweb.michael.orlitzky.com - haeredes.git/blobdiff - test/TestSuite.hs
Bump the version and switch to tasty (from test-framework).
[haeredes.git] / test / TestSuite.hs
index 7c553d223d23e115a69a7f283aadcbaed2cbaad9..91e044c8acc4f0e4a70149d89bc1356f37563ab3 100644 (file)
@@ -1,18 +1,12 @@
 module Main
 where
 
-import Data.Monoid (mempty)
-import Test.Framework (
-  Test,
-  defaultMainWithOpts )
-import Test.Framework.Runners.Options ( RunnerOptions )
+import Test.Tasty ( TestTree, defaultMain, testGroup )
 
-import DNS (dns_properties, dns_tests)
+import DNS ( dns_properties, dns_tests )
 
-main :: IO ()
-main = do
-  let empty_options = mempty :: RunnerOptions
-  defaultMainWithOpts tests empty_options
+tests :: TestTree
+tests = testGroup "All tests" [ dns_properties, dns_tests ]
 
-tests :: [Test]
-tests = [ dns_properties, dns_tests ]
+main :: IO ()
+main = defaultMain tests