Skip to content
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

Silent option for JUnit reporter #5657

Closed
4 tasks done
andrii-nastenko opened this issue May 2, 2024 · 2 comments · Fixed by #5659
Closed
4 tasks done

Silent option for JUnit reporter #5657

andrii-nastenko opened this issue May 2, 2024 · 2 comments · Fixed by #5659

Comments

@andrii-nastenko
Copy link

Clear and concise description of the problem

When you have silent: true globally - it doesn't seem to have effect on JUnit reporter.
I still get console.logs in my xml reports.

Suggested solution

Would be nice to have 'silent' option for JUnit reporter:

['junit', {outputFile: './test-results/results.xml', silent: true}]

Alternative

No response

Additional context

No response

Validations

@hi-ogawa
Copy link
Contributor

hi-ogawa commented May 3, 2024

It looks like jest-junit has includeConsoleOutput option https://github.com/jest-community/jest-junit/?tab=readme-ov-file#configuration so we can do the same (though it's opt-in in their case).

Btw, assuming you're using Circle CI from the screenshot in the last issue #5603, can you show how it looks on their UI? I'm wondering whether the console output in junit is too bothering in general.

@andrii-nastenko
Copy link
Author

It looks like jest-junit has includeConsoleOutput option https://github.com/jest-community/jest-junit/?tab=readme-ov-file#configuration so we can do the same (though it's opt-in in their case).

Btw, assuming you're using Circle CI from the screenshot in the last issue #5603, can you show how it looks on their UI? I'm wondering whether the console output in junit is too bothering in general.

Hi.
Thank you for fixing previous issue with serialized errors, now it works fine!

Screenshot 2024-05-03 at 11 02 25

And few examples with unwanted console.logs in JUnit report (CircleCI)

Screenshot 2024-05-03 at 12 03 08 Screenshot 2024-05-03 at 12 07 43

@github-actions github-actions bot locked and limited conversation to collaborators May 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants