question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unknown "reporter": mochawesome

See original GitHub issue

Describe 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:open
  • Created 4 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
oliversalzburgcommented, Jun 5, 2019

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 the node_modules directory so require() can not find mochawesome without a proper path.

Might also apply to #274

1reaction
iqianxingcommented, Dec 28, 2019

Possibly a permissions issue? Can you consistently reproduce this? I installed those versions in a clean workspace and it works. What is the script you use to run your tests?

I read npx command docs, and try npx command: npx mocha --reporter mochawesome. npx mocha can avoid this problem.

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found