0.0.10 • Published 4 years ago

mocha-sloth-reporter v0.0.10

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

mocha-sloth-reporter

Mocha reporter to detect slow tests and display to github actions if enabled

Getting Started

Installing

npm install --save-dev mocha-sloth-reporter

How To Use

mocha --reporter mocha-sloth-reporter

Parametes

--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

Output

Console Output

Slothy Test Count: 1

1006 ms Slothy Suite Such A Slothy Test

Github Actions Annotations Output

Github Actions Annotations Output

Contributing

TBD

Authors

  • Edward Romero - Initial work

License

This project is licensed under the MIT License - see the LICENSE file for details

Acknowledgments

0.0.10

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago