Skip to content

testiumjs/testium-mocha

Repository files navigation

Testium: Mocha Build Status

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.

Install

npm install --save-dev testium-mocha testium-driver-sync

Usage

// 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.