mpizenberg/elm-test-runner/1.0.0

NOTE: the latest version is 6.0.1

ElmTestRunner.Result

Types and functions to manipulate a test result.

Manipulation of the result of a test run

= Passed
{ labels : List String
, duration : Float
}
| Failed
{ labels : List String
, duration : Float
, todos : List String
, failures : List Failure
}

Type summarizing the results of a test run. It is obtained from the list of expectations returned by calling runner.run ().

fromExpectations : List String -> List Expectation -> TestResult

Convert a list of expectations (results of a run) into a TestResult. Return the Failed variant if there is any todo or failure in the expectations.

encode : TestResult -> Value

Encode a TestResult.

Decode a TestResult.

Helper functions

type alias Summary =
{ totalDuration : Float
, nbPassed : Int
, nbFailed : Int
}

Quantitative summary of all test results.

summary : Array TestResult -> Summary

Report a quantitative summary of test results.