- data ModuleMapping = ModuleMapping {
- cfModuleName :: String
- cfHunitAssertion :: [String]
- cfHunitTestCase :: [String]
- cfPropName :: [String]
- data RunnableFunction = RunnableFunction {
- cfModule :: [String]
- cfFunctionName :: String
- collectAllModulesForTest :: Shaker IO [ModuleMapping]
- collectChangedModulesForTest :: Shaker IO [ModuleMapping]
- runFunction :: RunnableFunction -> Shaker IO ()
- removeNonTestModule :: [ModuleMapping] -> [ModuleMapping]
- listAllTestFrameworkGroupList :: ShakerInput -> ExpQ
- filterModulesWithPattern :: [ModuleMapping] -> String -> [ModuleMapping]
- filterFunctionsWithPatterns :: [ModuleMapping] -> [String] -> [ModuleMapping]
- listTestFrameworkGroupList :: [ModuleMapping] -> ExpQ
Documentation
data ModuleMapping Source
Mapping between module name (to import) and test to execute
ModuleMapping | |
|
data RunnableFunction Source
Collect module information functions
collectAllModulesForTest :: Shaker IO [ModuleMapping]Source
Collect all non-main modules with their test function associated
collectChangedModulesForTest :: Shaker IO [ModuleMapping]Source
Analyze all haskell modules of the project and output all module needing recompilation
runFunction :: RunnableFunction -> Shaker IO ()Source
Compile, load and run the given function
removeNonTestModule :: [ModuleMapping] -> [ModuleMapping]Source
Remove all modules which does not contain test
Template haskell generator
listAllTestFrameworkGroupList :: ShakerInput -> ExpQSource
List all test group of the project. see Shaker.TestTH
filterModulesWithPattern :: [ModuleMapping] -> String -> [ModuleMapping]Source
Include only module matching the given pattern
filterFunctionsWithPatterns :: [ModuleMapping] -> [String] -> [ModuleMapping]Source
listTestFrameworkGroupList :: [ModuleMapping] -> ExpQSource
List all test group for test-framework from the list of modules