| Copyright | (c) Christopher Wells, 2016 |
|---|---|
| License | MIT |
| Maintainer | cwellsny@nycap.rr.com |
| Safe Haskell | None |
| Language | Haskell2010 |
SystemTest.Main
Description
- progMain :: IO ()
- testFile :: String -> IO ()
- printResults :: Test -> TestResults -> IO ()
- endProgram :: Int -> Int -> IO ()
Documentation
testFile :: String -> IO () Source
Runs the tests contained in the given file, and prints out their results.
printResults :: Test -> TestResults -> IO () Source
Prints out the results of the given test with a color based on the results. Passing tests are printed in green, and failing tests are printed in red.
endProgram :: Int -> Int -> IO () Source
Handles the ending of the program. Prints out the number of tests that failed, if any. Also gives an exit failure if any tests failed.