# Color output?

**URL:** <https://www.ruby-forum.com/t/color-output/116125>\
**Category:** RSpec\
**Created:** [October 2, 2007, 5:30pm UTC](https://www.ruby-forum.com/t/color-output/116125 "2007-10-02T17:30:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![johanatan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8491ac/32.png) [@johanatan](https://www.ruby-forum.com/u/johanatan)\
**Post date:** [October 2, 2007, 5:30pm UTC](https://www.ruby-forum.com/t/color-output/116125/1 "2007-10-02T17:30:57Z")

</div>

does story runner have commandline options ,eg to add color to output?

---

<div class="post-metadata">

**Author:** ![johanatan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8491ac/32.png) [@johanatan](https://www.ruby-forum.com/u/johanatan)\
**Post date:** [October 2, 2007, 5:34pm UTC](https://www.ruby-forum.com/t/color-output/116125/2 "2007-10-02T17:34:28Z")

</div>

Not yet. Patches welcome!

---

<div class="post-metadata">

**Author:** ![johanatan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8491ac/32.png) [@johanatan](https://www.ruby-forum.com/u/johanatan)\
**Post date:** [October 2, 2007, 5:35pm UTC](https://www.ruby-forum.com/t/color-output/116125/3 "2007-10-02T17:35:03Z")

</div>

On 10/2/07, David C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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!

---

<div class="post-metadata">

**Author:** ![johanatan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8491ac/32.png) [@johanatan](https://www.ruby-forum.com/u/johanatan)\
**Post date:** [October 2, 2007, 8:11pm UTC](https://www.ruby-forum.com/t/color-output/116125/4 "2007-10-02T20:11:00Z")

</div>

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  
given\_a\_project\_with\_manager\_logged\_in

```
 And " **system has no user**", "Invitee" do |username|
   User.find_by_email(make_email(username)).should be_nil
 end

 When "inviting a new user", "Invitee" do |username|
   @invitee_email = make_email username
   post_via_redirect "/projects/#{@project.id}/

```

memberships", :email =\> @invitee\_email,  
response.should be\_success  
end

```
 then_user_should_be_successfully_invited

```

end

Actually that’s kind of besides the point, except to say the  
scenarios may have a bunch of Givens, but only one or two change from  
one scenario to the next.

So I’ve highlighted the thing thats different about this scenario  
with asterix (“ **system has no user** ”). The next scenario may say  
And “ **Invitee is registered but not a member of this project** ”

Feature request: let me use color to highlight the text that  
describes whats different from one scenario to the next

---

<div class="post-metadata">

**Author:** ![johanatan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8491ac/32.png) [@johanatan](https://www.ruby-forum.com/u/johanatan)\
**Post date:** [October 3, 2007, 3:09pm UTC](https://www.ruby-forum.com/t/color-output/116125/5 "2007-10-03T15:09:06Z")

</div>

On 10/2/07, Jonathan L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > > At a minimum, if there were some way to let me manually include  
> > > formatting tags in the description strings

I _think_ that if you’re using the html report format, you can just  
include html tags in your descriptions.

As for supporting some sort of custom formatting syntax so that  
coloring works in plain text and html output, personally, that seems  
like overkill.

What to others think?

---

<div class="post-metadata">

**Author:** ![johanatan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8491ac/32.png) [@johanatan](https://www.ruby-forum.com/u/johanatan)\
**Post date:** [October 2, 2007, 8:18pm UTC](https://www.ruby-forum.com/t/color-output/116125/6 "2007-10-02T20:18:36Z")

</div>

On 10/2/07, Jonathan L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> feature request:

[http://rspec.rubyforge.org/community/contribute.html](http://rspec.rubyforge.org/community/contribute.html)  
[http://rubyforge.org/tracker/?atid=3152&group\_id=797&func=browse](http://rubyforge.org/tracker/?atid=3152&group_id=797&func=browse)
