Runs elm-test suites from Node.js
npm install -g elm-test
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.
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
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