maltize / sublime-text-2-ruby-tests

Sublime Text 2 plugin for running ruby tests! (Unit, RSpec, Cucumber)
721 stars 119 forks source link

ESC Character Appearing in Output #245

Open redbassett opened 9 years ago

redbassett commented 9 years ago

I am running into an issue similar to what some people posted finding in #33. When I run tests, the test output contains a bunch of what I think are colour codes and [ESC] characters instead of the usual progress bar. None of the fixes listed in #33 worked for me, primarily because I am not using rspec.

screen shot 2014-12-10 at 17 48 41

t3hk0d3 commented 9 years ago

+1 Same shit for me

2015-03-26 16 33 06

Sublime 3 build 3082

daytonn commented 9 years ago

Pass the --no-color flag:

 "run_rspec_command": "rspec --no-color {relative_path}"
redbassett commented 9 years ago

Are there still no known resolutions for non-rspec testing? Especially solutions that keep the colours?

daytonn commented 9 years ago

I don't use test unit but try this:

"run_ruby_unit_command": "ruby -Itest --no-use-color {relative_path}",
daytonn commented 9 years ago

The output should still be in color, at least they are for rspec. There's a language file that syntax highlights the output so no escape codes are needed.

redbassett commented 9 years ago

Sadly, no, it doesn't fix it. But thanks for the note on syntax highlighting! I didn't even think about the fact that the colour came from the syntax highlighting rather than the actual test scripts.

redbassett commented 9 years ago

Unfortunately, even after disabling all output colouring in Minitest, I am still seeing those characters in the output, however it is down to just a single ESC and BEL in the last few lines:

screen shot 2015-05-04 at 00 26 17

jamesfwz commented 8 years ago

Hi, any solution? Thanks.

arefaslani commented 8 years ago

use this package: https://github.com/aziz/SublimeANSI