Skip to content

svrist/node-test-runner

 
 

Repository files navigation

node-test-runner Version Travis build Status AppVeyor build status

Runs elm-test suites from Node.js

Installation

npm install -g elm-test

Usage

elm-test init  # Adds the elm-test dependency and creates Main.elm and Tests.elm
elm-test       # Runs the tests

Then add your tests to Tests.elm.

Configuration

The --compiler flag can be used to use a version of the Elm compiler that has not been install globally.

npm install elm
elm-test --compiler ./node_modules/.bin/elm-make

Travis CI

If you want to run your tests on Travis CI, here's a good starter .travis.yml:

language: node_js
node_js:
  - "5"
install:
  - npm install -g elm
  - npm install -g elm-test
  - elm-package install -y
  - pushd tests && elm-package install -y && popd
script:
  - elm-test

About

Runs elm-test suites from Node.js. Get it with npm install -g elm-test

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Elm 65.2%
  • JavaScript 34.8%