project-fuzzball-test
Version:
Run elm-test suites.
38 lines (27 loc) • 1.2 kB
Markdown
# node-elm-test [](https://www.npmjs.com/package/elm-test) [](http://travis-ci.org/rtfeldman/node-elm-test) [](https://ci.appveyor.com/project/rtfeldman/node-elm-test/branch/master)
Runs [elm-test](https://github.com/deadfoxygrandpa/Elm-Test) suites from Node.js
## Installation
```bash
npm install -g elm-test
```
## Usage
```bash
elm-test init # Adds the Elm-Test dependency and creates TestRunner.elm and Tests.elm
elm-test tests/TestRunner.elm # Runs the tests
```
Then add your tests to Tests.elm.
Also check out [`elm-check`](https://github.com/NoRedInk/elm-check) for property-based testing via `elm-test`!
### Travis CI
If you want to run your tests on Travis CI, here's a good starter `.travis.yml`:
```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:
- cd tests && elm-test TestRunner.elm
```