MuCheck-0.3.0.0: Automated Mutation Testing

Safe HaskellNone
LanguageHaskell2010

Test.MuCheck.Interpreter

Description

The entry point for mucheck

Synopsis

Documentation

evaluateMutants :: (Summarizable a, Show a) => (Mutant -> TestStr -> InterpreterOutput a -> Summary) -> [Mutant] -> [String] -> IO (MAnalysisSummary, [MutantSummary]) Source

Given the list of tests suites to check, run the test suite on mutants.

evalMethod :: (MonadInterpreter m, Typeable t) => String -> String -> m t Source

Given the filename, modulename, test to evaluate, evaluate, and return result as a pair.

t = I.runInterpreter (evalMethod
       "Examples/QuickCheckTest.hs"
       "quickCheckResult idEmp")

evalMutant :: (Typeable t, Summarizable t) => [TestStr] -> Mutant -> IO [InterpreterOutput t] Source

Run all tests on a mutant

evalTest :: (Typeable a, Summarizable a) => String -> String -> String -> IO (InterpreterOutput a) Source

Run one single test on a mutant

data MutantSummary Source

Data type to hold results of a single test execution