This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 114685 - RSpec / Autotest Output not colouring
Summary: RSpec / Autotest Output not colouring
Status: RESOLVED FIXED
Alias: None
Product: ruby
Classification: Unclassified
Component: Testing (show other bugs)
Version: 6.x
Hardware: Other All
: P3 blocker (vote)
Assignee: Torbjorn Norbye
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-04 20:14 UTC by logiclab
Modified: 2007-09-04 23:43 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Bug description and sample output (515 bytes, text/plain)
2007-09-04 20:16 UTC, logiclab
Details

Note You need to log in before you can comment on or make changes to this bug.
Description logiclab 2007-09-04 20:14:16 UTC
RSpec and Autotest output not getting coloured red / green and has formatting tags surrounding it.
Comment 1 logiclab 2007-09-04 20:16:20 UTC
Created attachment 48088 [details]
Bug description and sample output
Comment 2 Torbjorn Norbye 2007-09-04 23:43:01 UTC
Fixed in build #3660 on http://deadlock.netbeans.org/hudson/job/ruby/.

Unfortunately, the output window can't show colors.

I did however fix things such that the Ruby support (a) removes the formatting tags from the output such that it's
legible, and (b) doesn't get confused by the formatting tags when recognizing error summaries. Thus, the editor should
now recognize error summaries and properly post results in the footer.

I hope that color input isn't as important in the output window since the overall summary is displayed in color in the
editor; if you Ctrl-F6 your spec file (Test File) then you get a red summary in the editor footer if there are failures,
and a green summary if things are okay.

(There is an existing request, issue 106141, tracking the ability to write colored output to the embedded output window.
 There is also another related issue to configuring spec for execution under NetBeans, issue 101997.)

P.S. I have unit tests now containing rspec output with formatting tags, and those pass, but it would be great if you
can confirm that this actually works in the wild with rspec.