Unknown "reporter": mochawesome
See original GitHub issueDescribe the bug While running test using mochawesome, it throws error saying {reporter mochawesome not found}.
Expected behavior
I have install mochawesome in the workspace using npm install mochawesome --save-dev
and its also visible in my package.json, for this scenario it does not work. However, when i install mochawesome globally it worked fine.
Environment (please complete the following information):
- MacOS
- mochawesome version - 3.1.2
- mocha (or other test library) version - 6.1.4
- Node version - 8.9.4
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (2 by maintainers)
Top Results From Across the Web
mochawesome - npm
Mochawesome is a custom reporter for use with the Javascript testing framework, mocha. It runs on Node.js (>=10) and works in conjunction ...
Read more >Developers - Unknown "reporter": mochawesome - - Bountysource
While running test using mochawesome, it throws error saying {reporter mochawesome not found}. Expected behavior. I have install mochawesome in the workspace ...
Read more >mochawesome/general - Gitter
Whenever I write in console "mocha --reporter mochawesome", the output tells me mochawesome is an unknown reporter... does nayone know why? Adam Gruber....
Read more >Mochawesome reporter with Nightwatch | Developer Guide
Overview. Mochawesome is a very popular Mocha reporter and it works out of the box with Nightwatch as well, when Mocha is being...
Read more >Getting Error mochawesome-merge error: unknown option
0" }, "reporter": "mochawesome", "reporterOptions":{ "reportDir": "cypress/reports/mochawesome-report", "reportFilename": "CustomeMocaReport", " ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You can try to supply the path explicitly
--reporter=./node_modules/mochawesome
. I had the same issue, because my package manager uses symlinks to construct thenode_modules
directory sorequire()
can not findmochawesome
without a proper path.Might also apply to #274
I read npx command docs, and try npx command:
npx mocha --reporter mochawesome
. npx mocha can avoid this problem.