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

Bad encoding on standard and mocha themes when printing to Eclipse's console #92

Closed
nlisker opened this issue Oct 27, 2018 · 2 comments
Closed

Comments

@nlisker
Copy link

nlisker commented Oct 27, 2018

When using the plain theme, the output is fine:

com.toys.OperationTest

  Test testTimes() FAILED

  org.opentest4j.AssertionFailedError: TIMES should multiply 2 and 3 to be 6 ==> expected: <5.0> but was: <6.0>
      at com.toys.OperationTest.testTimes(OperationTest.java:20)

  Test testPlus() PASSED

FAILURE: Executed 2 tests in 853ms (1 failed)

However, when using standard or mocha the output is:

�[0K�[1mcom.toys.OperationTest�[m

�[0K�[1m  Test �[22mtestTimes()�[31m FAILED�[31m

  org.opentest4j.AssertionFailedError: TIMES should multiply 2 and 3 to be 6 ==> expected: <5.0> but was: <6.0>
      at com.toys.OperationTest.testTimes(OperationTest.java:20)
�[m
�[0K�[1m  Test �[22mtestPlus()�[32m PASSED�[m

�[0K�[1;31mFAILURE: �[39mExecuted 2 tests in 817ms (1 failed)�[m

The run configuration for the gradle test command specifies UTF-8 encoding.

Using Eclipse 4.9

@radarsh
Copy link
Owner

radarsh commented Oct 27, 2018

Sounds like Eclipse console doesn't support ANSI escape codes. Have you tried installing plugins that enable this such as ANSI Escape Console?

@radarsh
Copy link
Owner

radarsh commented Nov 21, 2018

Can confirm that installing the ANSI Escape Console Eclipse plugin as mentioned above resolves the issue.

image

@radarsh radarsh closed this as completed Nov 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants