Safe Haskell | Safe-Infered |
---|
- data Args = Args {}
- data Result
- = Success { }
- | GaveUp { }
- | Failure { }
- | NoExpectedFailure { }
- isSuccess :: Result -> Bool
- stdArgs :: Args
- quickCheck :: Testable prop => prop -> IO ()
- quickCheckWith :: Testable prop => Args -> prop -> IO ()
- quickCheckResult :: Testable prop => prop -> IO Result
- quickCheckWithResult :: Testable prop => Args -> prop -> IO Result
- verboseCheck :: Testable prop => prop -> IO ()
- verboseCheckWith :: Testable prop => Args -> prop -> IO ()
- verboseCheckResult :: Testable prop => prop -> IO Result
- verboseCheckWithResult :: Testable prop => Args -> prop -> IO Result
- test :: State -> (StdGen -> Int -> Prop) -> IO Result
- doneTesting :: State -> (StdGen -> Int -> Prop) -> IO Result
- giveUp :: State -> (StdGen -> Int -> Prop) -> IO Result
- runATest :: State -> (StdGen -> Int -> Prop) -> IO Result
- summary :: State -> [(String, Int)]
- success :: State -> IO ()
- foundFailure :: State -> Result -> [Rose Result] -> IO Int
- localMin :: State -> Result -> [Rose Result] -> IO Int
- localMin' :: State -> Result -> [Rose Result] -> IO Int
- localMinFound :: State -> Result -> IO Int
- callbackPostTest :: State -> Result -> IO ()
- callbackPostFinalFailure :: State -> Result -> IO ()
- safely :: State -> IO () -> IO ()
Running tests
Args specifies arguments to the QuickCheck driver
Result represents the test result
Success | |
| |
GaveUp | |
| |
Failure | |
| |
NoExpectedFailure | |
|
quickCheck :: Testable prop => prop -> IO ()Source
Tests a property and prints the results to stdout
.
quickCheckWith :: Testable prop => Args -> prop -> IO ()Source
Tests a property, using test arguments, and prints the results to stdout
.
quickCheckResult :: Testable prop => prop -> IO ResultSource
Tests a property, produces a test result, and prints the results to stdout
.
quickCheckWithResult :: Testable prop => Args -> prop -> IO ResultSource
Tests a property, using test arguments, produces a test result, and prints the results to stdout
.
verboseCheck :: Testable prop => prop -> IO ()Source
Tests a property and prints the results and all test cases generated to stdout
.
This is just a convenience function that means the same as quickCheck
.
verbose
.
verboseCheckWith :: Testable prop => Args -> prop -> IO ()Source
Tests a property, using test arguments, and prints the results and all test cases generated to stdout
.
This is just a convenience function that combines quickCheckWith
and verbose
.
verboseCheckResult :: Testable prop => prop -> IO ResultSource
Tests a property, produces a test result, and prints the results and all test cases generated to stdout
.
This is just a convenience function that combines quickCheckResult
and verbose
.
verboseCheckWithResult :: Testable prop => Args -> prop -> IO ResultSource
Tests a property, using test arguments, produces a test result, and prints the results and all test cases generated to stdout
.
This is just a convenience function that combines quickCheckWithResult
and verbose
.