Write tests as a web page, run from the command line for ci. Outputs coverage for istanbul instrumented code.
npm install browser-test-runner
Run tests on a browser:
browser-test-runner chrome 'test/index.html'
browser-test-runner firefox 'test/index.html'
browser-test-runner safari 'test/index.html'
browser-test-runner chrome-headless 'test/index.html'
Host the test file, and re-run the tests on any browser that has the page open whenever the tests are changed
browser-test-runner start 'test/index.html'
- Replace
browser-test-runner phantom
withbrowser-test-runner chrome-headless
, which is backed by puppeteer