testium-mocha

Mocha integration for testium

Usage no npm install needed!

<script type="module">
  import testiumMocha from 'https://cdn.skypack.dev/testium-mocha';
</script>

README

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.