mocha-perf-reporter

0.2.1 • Public • Published

Mocha Perf Reporter

Test performance reporter

http://storage.j0.hn/perf-reporter.png

Install

npm install mocha-perf-reporter

Usage

var assert = require('assert');
 
// Each suite is a table
describe ('This is the first header col', function(){
  // Each test is a row
  it ('Does something that takes time', function( done ){
    // Expected time for this test
    this.expected = 1200;
    // Yay, you've decreased the time
    setTimeout( done, 1180 );
  });
});

Package Sidebar

Install

npm i mocha-perf-reporter

Weekly Downloads

83

Version

0.2.1

License

ISC

Last publish

Collaborators

  • johndotawesome