mpizenberg/elm-test-runner/2.0.1

NOTE: the latest version is 6.0.1

ElmTestRunner.Reporter.Interface

Reporter interface.

type alias Interface =
{ onBegin : Int -> Maybe String
, onResult : TestResult -> Maybe String
, onEnd : Array TestResult -> Maybe String
}

Interface that must be implemented by a reporter. The return types are Maybe String to know if something (or not) has to be logged by the reporter.

onBegin : Int -> Maybe String
onBegin nbTests = ...


onResult : TestResult -> Maybe String
onResult testResult = ...


onEnd : Array TestResult -> Maybe String
onEnd allTestResults = ...