Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

Added duration in milliseconds to the list reporter

Tj Holowaychuk70739bca3577
diff --git a/lib/reporters/list.js b/lib/reporters/list.js
index 2998f54b..f16c16a4 100644
--- a/lib/reporters/list.js
+++ b/lib/reporters/list.js
@@ -33,7 +33,7 @@ function List(runner) {
// test passed
runner.on('pass', function(test){
- console.log(color('pass', ' %s'), test.fullTitle());
+ console.log(color('pass', ' %s - %dms'), test.fullTitle(), test.duration);
});
// test failed