- dt <- docTest ["src/Everything.hs"] ["-isrc"]
-
- let empty_test_opts = mempty :: TestOptions
- let my_test_opts = empty_test_opts {
- topt_maximum_generated_tests = Just 1000
- }
-
- let empty_runner_opts = mempty :: RunnerOptions
- let my_runner_opts = empty_runner_opts {
- ropt_test_options = Just my_test_opts
- }
-
- defaultMainWithOpts ([dt] ++ tests) my_runner_opts
-
-
--- | 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 ]