0.2.1 • Published 10 years ago

mocha-perf-reporter v0.2.1

Weekly downloads
213
License
ISC
Repository
github
Last release
10 years ago

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 );
  });
});