Hi.
Is it possible to get color text in less, more or other pagers while
piping the color output of Cucumber and RSpec? If it's not possible is
there any other methods to work with the color text in a console without
permanent “rewinding” the output back to the beginning?
Thanks.
--
Posted via
P. A. li...@ruby-forum.com on 2009-12-02 at 09:08:
Is it possible to get color text in less, more or other pagers while
piping the color output of Cucumber and RSpec?
Have a look at these options for `less`:
From LESS(1) man page:
-r or --raw-control-chars
Causes raw control
I solve it by myself.
To enable piping color output in Cucumber it needs to run the cucumber
command with the -c option.
$ cucumber -c | less #= color output
To enable piping color output in RSpec it needs to set the RSPEC_COLOR
environment variable to true.
$ export RSPEC_COLOR=true
$ spec
P. A. li...@ruby-forum.com on 2009-12-02 at 10:13:
$ cucumber #= color output
$ cucumber | less -R #= monochrome
Ah now I see what you're saying. We're getting burned by this line:
http://github.com/aslakhellesoy/cucumber/blob/master/lib/cucumber/formatter/ansicolor.rb#L20
does story runner have commandline options ,eg to add color to output?
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
Not yet. Patches welcome!
On 10/2/07, Jonathan Linowes [EMAIL PROTECTED] wrote:
does story runner have commandline options ,eg to add color to output?
___
rspec-users mailing list
rspec-users@rubyforge.org
On 10/2/07, David Chelimsky [EMAIL PROTECTED] wrote:
Not yet. Patches welcome!
Actually - there's nothing to patch yet - we plan to align the runners
in the near future. So
Not yet. Coming soon!
On 10/2/07, Jonathan Linowes [EMAIL PROTECTED] wrote:
does story runner have commandline
feature request:
I have a story with a bunch of different scenarios that vary by just
one (or two) things. In fact, within the story I've written a method
that sets up the common set of Givens, and another than checks for a
common set of results, e.g.
Scenario no User record do
On 10/2/07, Jonathan Linowes [EMAIL PROTECTED] wrote:
feature request:
http://rspec.rubyforge.org/community/contribute.html
http://rubyforge.org/tracker/?atid=3152group_id=797func=browse
___
rspec-users mailing list
rspec-users@rubyforge.org