Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- runTest :: PackageDescription -> LocalBuildInfo -> ComponentLocalBuildInfo -> TestFlags -> TestSuite -> IO TestSuiteLog
- simpleTestStub :: ModuleName -> String
- stubFilePath :: TestSuite -> FilePath
- stubMain :: IO [Test] -> IO ()
- stubName :: TestSuite -> FilePath
- stubWriteLog :: FilePath -> UnqualComponentName -> TestLogs -> NoCallStackIO ()
- writeSimpleTestStub :: TestSuite -> FilePath -> NoCallStackIO ()
Documentation
runTest :: PackageDescription -> LocalBuildInfo -> ComponentLocalBuildInfo -> TestFlags -> TestSuite -> IO TestSuiteLog Source #
simpleTestStub :: ModuleName -> String Source #
Source code for library test suite stub executable
stubFilePath :: TestSuite -> FilePath Source #
The filename of the source file for the stub executable associated with a
library TestSuite
.
stubMain :: IO [Test] -> IO () Source #
Main function for test stubs. Once, it was written directly into the stub, but minimizing the amount of code actually in the stub maximizes the number of detectable errors when Cabal is compiled.
stubName :: TestSuite -> FilePath Source #
The name of the stub executable associated with a library TestSuite
.
stubWriteLog :: FilePath -> UnqualComponentName -> TestLogs -> NoCallStackIO () Source #
From a test stub, write the TestSuiteLog
to temporary file for the calling
Cabal process to read.
:: TestSuite | library |
-> FilePath | path to directory where stub source should be located |
-> NoCallStackIO () |
Write the source file for a library TestSuite
stub executable.