rtfeldman/node-test-runner/3.0.0

NOTE: this package is not compatible with Elm 0.19.1

Test.Runner.Node

Node Runner

Runs a test and outputs its results to the console. Exit code is 0 if tests passed and 1 if any failed.

run : Emitter Msg -> Test -> TestProgram

Run the test and report the results.

Fuzz tests use a default run count of 100, and an initial seed based on the system time when the test runs begin.

{ a | runs : Int, seed : Maybe Int }
-> Emitter Msg
-> Test
-> TestProgram

Run the test using the provided options. If Nothing is provided for either runs or seed, it will fall back on the options used in run.

type alias TestProgram =
Program Value (Model Msg Model) (Msg Msg)

A program which will run tests and report their results.