Mocha reporter to detect slow tests and display to github actions if enabled
npm install --save-dev mocha-sloth-reporter
mocha --reporter mocha-sloth-reporter
--slow <Integer>
- Default: 75 ms
- Display:
- If test is higher than value then it will be displayed in yellow
- If test is higher than double the value then it will be displayed in red
- Example:
mocha --reporter mocha-sloth-reporter --slow 100
--actions <boolean>
- Default: false
- Display:
- If test is higher than value then it will be displayed as warning if actions enabled
- If test is higher than double the value then it will be displayed as error if actions enabled
- Example:
mocha --reporter mocha-sloth-reporter --actions true
--inline <boolean>
- Default: false
- Display:
- It set to true, it will provide the results inline after each test and not in a summarized way after the tests are finalized.
- Example:
mocha --reporter mocha-sloth-reporter --inline true
Slothy Test Count: 1
1006 ms Slothy Suite Such A Slothy Test
TBD
- Edward Romero - Initial work
This project is licensed under the MIT License - see the LICENSE file for details
- Original reporter was inspired by catdad/mocha-slow-test-reporter