Skip to content

armgit / mocha

Public Imported from GitHub
0

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

durations

Tj Holowaychuk2c9845064a36
diff --git a/index.md b/index.md
index 94631148..46bd5f67 100644
--- a/index.md
+++ b/index.md
@@ -113,6 +113,14 @@ Testing asynchronous code with Mocha could not be simpler! Simply invoke the cal
})
})
+## Test duration
+
+ Most of the reporters support some form of displaying
+ test duration, as well as flagging tests that are slow,
+ as shown here with the "spec" reporter:
+
+ ![test duration](images/reporter-spec-duration.js)
+
## mocha(1)
Usage: mocha [options] [files]