-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No mocha console output when using reporter #135
Comments
+1 to this, I am trying out this package and would love to be able to see the output I used to see before in the console. I used to be able to see the test suite summaries and error messages for failures right when the testing is done. Now I would need to open up the generated XML. If the output could be directed to both, that would be great. |
Is there a way to show mocha output? |
I believe the way to achieve this is to use https://www.npmjs.com/package/mocha-multi-reporters and configure it to use both the spec and mocha-junit-reporters |
@michaelleeallen can you please comment? |
@jnaviamtc If you are using Check your "mocha": {
.
.
.
"package": "../package.json",
"reporter": [
"spec",
"mocha-junit-reporter"
],
.
.
.
} You can simply switch the place of "mocha": {
.
.
.
"package": "../package.json",
"reporter": [
"mocha-junit-reporter",
"spec"
],
.
.
.
} And that solves the problem. "mocha": {
"reporter": "mocha-multi",
"reporterOptions": "spec=-,mocha-junit-reporter=-",
}, |
Currently if I use the
--reporter mocha-junit-reporter
when calling mocha, the console doesn't show theit('Should...')
hooks in the console. At the end of runtime it generates the.xml
file for the test no problem.In prior usage this was not the case. During runtime I could see the current state of the test in the console, with each test showing a check-mark of marked in red if it failed.
So far I have tried:
Any help with this matter is greatly appreciated.
Edit: typos
The text was updated successfully, but these errors were encountered: