Karya, built on 2023-08-29T07:47:28 (patch 7a412d5d6ba4968ca4155ef276a062ccdeb9109a)
Safe HaskellSafe-Inferred

Util.Test.GenerateRunTests

Description

Collect tests from the given modules and generate a haskell module that calls the tests. Test functions are any function starting with test_ or profile_ and immediately followed by = (implying the function has no arguments). This module doesn't distinguish between tests and profiles, but they should presumably be compiled separately since they require different flags.

If a module has a function called initialize, it will be called as IO () prior to the tests.

Synopsis

Documentation

main :: IO () Source #

patchFile :: FilePath -> IO () Source #

Add a ':: Test' type signature to naked test declarations.