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

As a developer, when running tests with the colors option set to false in IntelliJ 15, escape char's are not being outputted correctly. #44

Closed
amitport opened this issue Dec 15, 2015 · 6 comments
Labels

Comments

@amitport
Copy link

running a failing test with 'colors: false' messes-up output in some consoles (e.g., intelliJ run console)

@hdavidzhu
Copy link
Collaborator

Could you copy/paste the output?

@amitport
Copy link
Author

Chrome 47.0.2526 (Windows 7 0.0.0): Executed 2 of 2 (1 FAILED) (0.028 secs / 0.001 secs)
TOTAL: 1 FAILED, 1 SUCCESS

�[31m1) <test-name>
�[39m�[31m     <test scope>
�[39m     �[90mAssertionError: expected 1 to equal 10
    at Context.<anonymous> (<file-path>:25:32)
�[39m

(the � are U+001B - which is the 'escape' char)

@hdavidzhu hdavidzhu changed the title error output does not respect 'colors: false' Error output does not respect 'colors: false' in certain consoles. Dec 15, 2015
@hdavidzhu hdavidzhu added the bug label Dec 15, 2015
@tmcgee123
Copy link
Owner

Seems to be fixed with IntelliJ 14. What version are you using?

Also, when you say messes up, is it the formatting? Are colors still displaying? It would be awesome if you could post a screenshot instead of just the output.

@amitport
Copy link
Author

using intelliJ 15 here. formatting is OK, no colors. just the weird �[31m, �[90m chars all over the area that supposed to be red.

Just in case it may help, I'll add some more possibly unrelated and over-complicating details: I'm running karma as a gradle-exec task on windows. When using intelliJ terminal the output is OK, I'm only seeing issues on the intelliJ's gradle-task output.

In any case, I don't want to fix intelliJ issues here- but if I could make karma output without any color, that is, no red on errors, I think this will solve the output issues intelliJ has

@tmcgee123
Copy link
Owner

Thank you for the clarification @amitport, I will look into this if @hdavidzhu doesn't get to it first!

@tmcgee123 tmcgee123 changed the title Error output does not respect 'colors: false' in certain consoles. As a developer, when running tests with the colors option set to false in IntelliJ 15, escape char's are not being outputted correctly. Jan 2, 2016
@tmcgee123
Copy link
Owner

Closing this as only one person has made an issue or said anything in the last 2 years, if it comes back up I will open the ticket again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants