Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 601 Bytes

README.md

File metadata and controls

25 lines (18 loc) · 601 Bytes

test-runner-node

This package allows you to execute tests and output the results to the terminal.

To define the actual tests, you'll need to use the gren-lang/test package.

Quick start

A minimal test program will have the following in a Main.gren file:

module Main exposing (main)

import Expect
import Test exposing (describe, test)
import Test.Runner.Node exposing (Program, run)

main : Program
main =
    run <|
        describe "All tests"
            [ test "Failing test" <| \_ ->
                Expect.equal True False
            ]