testium-mocha

5.0.7 • Public • Published

nlm-chat nlm-github nlm-node nlm-version

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.

Dependencies (4)

Dev Dependencies (17)

Package Sidebar

Install

npm i testium-mocha

Weekly Downloads

0

Version

5.0.7

License

BSD-3-Clause

Unpacked Size

17 kB

Total Files

6

Last publish

Collaborators

  • endangeredmassa
  • jkrems
  • groupon