spoonutil-0.0.1: Spoon's utilities. Simple testing and nice looking error reporting.

Test.Simple

Description

Spoon's test utility! Simple testing for spoons.

Synopsis

Documentation

test_allSource

Arguments

:: (ErrorReport a, Show b) 
=> String

The name of the testing process

-> (FilePath -> String -> Either a b)

The test

-> IO () 

Test all source files in a stage of the testing process.

testSource

Arguments

:: (ErrorReport a, Show b) 
=> String

The name of the testing process

-> (FilePath -> String -> Either a b)

The test

-> Bool

Whether the test is to succeed or to fail.

-> FilePath

The file we are to test. The file must be in the current directory/name of testing process

-> IO ()

Run the test

Test a source file.

test_all_IOSource

Arguments

:: (ErrorReport a, Show b) 
=> String

The name of the testing process

-> (FilePath -> String -> IO (Either a b))

The test

-> IO () 

Test all source files in a stage of the testing process.

test_IOSource

Arguments

:: (ErrorReport a, Show b) 
=> String

The name of the testing process

-> (FilePath -> String -> IO (Either a b))

The test

-> Bool

Whether the test is to succeed or to fail.

-> FilePath

The file we are to test. The file must be in the current directory/name of testing process

-> IO ()

Run the test

Test a source file.