browser-test-runner

Run in browser test from the command line

Usage no npm install needed!

<script type="module">
  import browserTestRunner from 'https://cdn.skypack.dev/browser-test-runner';
</script>

README

browser-test-runner

Write tests as a web page, run from the command line for ci. Outputs coverage for istanbul instrumented code.

 Install

npm install browser-test-runner

Usage

Run tests on a browser:

browser-test-runner chrome 'target/test/index.html'
browser-test-runner firefox 'target/test/index.html'
browser-test-runner safari 'target/test/index.html'
browser-test-runner chrome-headless 'target/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 'target/test/index.html'

 Changelog

0.8.0

  • Replace browser-test-runner phantom with browser-test-runner chrome-headless, which is backed by puppeteer