Skip to content

Commit 500e638

Browse files
committed
update slow description
1 parent d401ee1 commit 500e638

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/index.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,10 +665,16 @@ $ mocha
665665

666666
<h2 id="test-duration">Test duration</h2>
667667

668-
Many reporters will display test duration, as well as flagging tests that are slow, as shown here with the "spec" reporter:
668+
Many reporters will display test duration, as well as flagging tests that are slow, as shown here with the "spec" reporter: (Default is 75ms)
669669

670670
![test duration](images/reporter-spec-duration.png?withoutEnlargement&resize=920,9999){:class="screenshot"}
671671

672+
There are three levels of test duration:
673+
674+
1. FAST: Tests run under half of the "slow" threshold is considered "FAST". The duration will be shown in green or not shown at all.
675+
2. REASONABLE (in yellow): Tests duration under threshold but above half of threshold will be shown in yellow.
676+
3. SLOW (in red): Tests that runs over the threshold.
677+
672678
To tweak what's considered "slow", you can use the `slow()` method:
673679

674680
```js

0 commit comments

Comments
 (0)