Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

mocha-slow-test-reporter

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mocha-slow-test-reporter

A simple little reporter that detects slow tests in Mocha, and prints a list of the name and time, ordered by slowest first.

latest
Source
npmnpm
Version
0.1.2
Version published
Weekly downloads
6.9K
11.47%
Maintainers
1
Weekly downloads
 
Created
Source

mocha-slow-test-reporter

Build Downloads Version Dependency Status

A simple little reporter that detects slow tests in Mocha, and prints a list of the name and time, ordered by slowest first.

Install

npm install --save-dev mocha-slow-test-reporter

Use

mocha --reporter mocha-slow-test-reporter

By default, all test slower than 75 milliseconds will be listed. You can configure that using the --slow tag, as such:

mocha --reporter mocha-slow-test-reporter --slow 20

Output

Here's a sample of the output.

Slow test count: 6

514ms  [slow test long name] 512ms pariatur laboris laborum sint aliqua
       fugiat sint ipsum tempor esse mollit aliqua et ad enim exercitation
       laborum in anim labore mollit enim officia proident fugiat commodo
       proident velit et reprehenderit labore dolore mollit nulla laboris
       voluptate officia aute cupidatat qui incididunt anim ipsum aliquip
       elit esse eu est veniam in aliqua consequat

512ms  [slow tests] 512ms

257ms  [slow tests] 256ms

257ms  [slow test long name] 256ms in aute Lorem mollit veniam in nostrud
       quis anim non laboris nostrud labore cupidatat in magna officia et
       officia id elit duis nulla aliqua eu cillum

129ms  [slow tests] 128ms

128ms  [slow test long name] 128ms laborum ad nisi est minim non duis
       deserunt est id ullamco id anim

Keywords

mocha

FAQs

Package last updated on 26 Jun 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts