]> gitweb.michael.orlitzky.com - spline3.git/blobdiff - test/TestSuite.hs
test/{Doctests,TestSuite}.hs: add explicit export lists.
[spline3.git] / test / TestSuite.hs
index 0e11d1c0cfc4cf675862f47af66d4dfa3885a668..0cc376e63ac9c5658755374d66ffb951f25e0842 100644 (file)
@@ -1,44 +1,32 @@
-module TestSuite
+module Main (main)
 where
 
-import Test.Framework (defaultMain, testGroup, Test, TestName, TestOptions(..))
-import Test.Framework.Providers.API (TestName)
-import Test.Framework.Providers.DocTest
-import Test.Framework.Providers.HUnit (testCase)
-import Test.Framework.Providers.QuickCheck2 (testProperty)
-import Test.HUnit
-import Test.QuickCheck (Testable ())
+import Test.Tasty ( TestTree, defaultMain, localOption, testGroup )
+import Test.Tasty.QuickCheck ( QuickCheckTests(..) )
 
-import Cardinal (cardinal_tests, cardinal_properties)
-import Cube (cube_properties)
-import FunctionValues (function_values_tests, function_values_properties)
-import Grid (grid_tests, slow_tests)
-import Misc (misc_tests, misc_properties)
-import Tetrahedron (tetrahedron_tests, tetrahedron_properties)
+import Cardinal ( cardinal_tests, cardinal_properties )
+import Cube ( cube_properties )
+import FunctionValues ( function_values_tests, function_values_properties )
+import Grid ( grid_properties, grid_tests, slow_tests )
+import Misc ( misc_tests, misc_properties )
+import Tetrahedron ( tetrahedron_tests, tetrahedron_properties )
 
 main :: IO ()
 main = do
-  dt <- docTest ["src/Everything.hs"] ["-isrc"]
-  defaultMain $ [dt] ++ tests
-
--- | Defined so that my test names fit on one line.
-tc :: Test.Framework.Providers.API.TestName -> Test.HUnit.Assertion -> Test.Framework.Test
-tc = testCase
-
-
--- | Defined so that my test names fit on one line.
-tp :: Test.QuickCheck.Testable a => Test.Framework.TestName -> a -> Test.Framework.Test
-tp = testProperty
-
-
-tests :: [Test.Framework.Test]
-tests = [ cardinal_tests,
-          function_values_tests,
-          grid_tests,
-          misc_tests,
-          tetrahedron_tests,
-          cube_properties,
-          tetrahedron_properties,
-          misc_properties,          
-          cardinal_properties,
-          slow_tests ]
+  defaultMain $ localOption (QuickCheckTests 500) tests
+
+
+tests :: TestTree
+tests =
+  testGroup "All tests"
+    [ cardinal_tests,
+      function_values_tests,
+      grid_tests,
+      misc_tests,
+      tetrahedron_tests,
+      grid_properties,
+      cube_properties,
+      tetrahedron_properties,
+      misc_properties,
+      cardinal_properties,
+      slow_tests ]