system-test-0.1.2: Runs system tests of applications.

Copyright(c) Christopher Wells, 2016
LicenseMIT
Maintainercwellsny@nycap.rr.com
Safe HaskellNone
LanguageHaskell2010

SystemTest.Main

Description

 

Synopsis

Documentation

progMain :: IO () Source

Gets the files to be tested and runs the tests they contain.

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.