Fix .mocharc.js example in Mocha documentation #2682
Unanswered
fifle
asked this question in
Documentation
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone! I would like to introduce the fix for the page that describes the setup for the Mocha runner: https://allurereport.org/docs/mocha/#:~:text=In%20the%20script,for%20test%20results.
It includes an example for the
.mocharc.jsfile, but it contains a mistake. I'm not sure if thereporterOptionsparameter was supported before, but it's not working anymore. Mocha's documentation and samples refer to another parameter called'reporter-option', which is actually an array.Since I'm using
.mocharc.jsmainly to pass the environment value for Allure'sresultsDir, I would recommend modifying the existing example to this one:Alternatively, you could include an environment variable for the
reporter-optionarray:Beta Was this translation helpful? Give feedback.
All reactions