Testium integration for mocha.
- Minimal footprint, just add one
before
hook - Can launch your app, selenium/phantomjs for you
- Automatically takes snapshots of screen & html source on failure
This project is a safe and inclusive place for contributors of all kinds. See the Code of Conduct for details.
npm install --save-dev testium-mocha testium-driver-sync
// test/my-test.js
var browser = require('testium-mocha').browser;
describe('testium-mocha - the basics', function() {
before(browser.beforeHook());
it('can load a page', function() {
browser.navigateTo('/index.html');
});
});
Run the above test using mocha test/my-test.js
.