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
JUnit reporter sometimes adds ansi colors to the report #4958
Comments
In your case, color highlight is probably added by testing-library (e.g. I tested an example here. Would this help your use case? https://stackblitz.com/edit/vitest-dev-vitest-8sqonh?file=src%2Fcomponents%2Finput.test.tsx (Actually, I found a different case where |
Hello @AmirTugi. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with |
I mis-understood the request slightly. I suppose you still want to keep the color of other reporter, but just strips ansi code only from junit output. I think always stripping off from junit sounds okay to me. Maybe we can provide an option to switch if there's a strong need of preserving the color there. |
Hello @AmirTugi. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with |
Describe the bug
Hey, from time to time the JUnit reporter adds ansi colors to my report (not sure what's the rule), and this makes the report unreadable in places like the CircleCI's test results which doesn't show ansi colors.
This is how it looks like:
I used to have a
NO_COLOR
/--no-color
flag, but it applies to both reportersHow can I configure the junit reporter to strip the colors?
Reproduction
I will add a stackblitz once I manage to reproduce it in a standalone environment.
Right now I am experiencing this in my local machine.
I'll add a reproduction once I manage to create one 💪🏼
System Info
Used Package Manager
yarn
Validations
The text was updated successfully, but these errors were encountered: