testron
CI your client side tests with Electron
about
This uses Electron to run tests in Chromium.
usage
- Install to your project:
npm install testron --save-dev
- Install Electron:
npm install electron-prebuilt --save-dev
- Add a
test
script to yourpackage.json
:
- Run
npm test
to run the test script in Electron
writing tests
Currently this only supports TAP. Here is an example test written using tape:
var test =
It is recommended bundling your tests and piping to testron
:
travis-ci integration
Add a .travis.yml
file to your project:
language: node_jsnode_js: - 'iojs'before_script: - export DISPLAY=:99.0; sh -e /etc/init.d/xvfb start
API
There is also an API:
var testron = var tests = testsstdouttests
similar projects
These are similar projects that also (can) use Electron for testing:
license
(c) 2018 Kyle Robinson Young. MIT License