[rspec-users] Pretty HTML reporting for stories

Ben Mabey ben at benmabey.com
Mon Jun 2 14:45:18 EDT 2008


David Chelimsky wrote:
> On Jun 2, 2008, at 11:28 AM, Matt Wynne wrote:
>
>> Hi all,
>>
>> I'm just getting to grips with rspec, and I'm trying to put together a
>> showy demo. We're trying to use the (plain text) stories feature, rather
>> than the specs. I'd like to show off a fancy HTML report of the results
>> if possible.
>>
>> So it seems I can do this from the spec command line tool, but I can't
>> make it work for a story.
>>
>> I've got the three files (story.txt, steps.rb, runner.rb) from the
>> rspec.info homepage, and I can run then by doing
>> ruby runner.rb
>>
>> All splendid so far.
>>
>> By when I try to do
>> spec runner.rb
>>
>> It doesn't want to play. I don't get an error message or anything, it
>> just seems to ignore me.
>>
>> Does spec support stories, or just specs? If so, what am I doing wrong?
>
> There is a bug right now when running stories w/ rails using the html 
> formatter. I'm heading out the door right now, but will follow up 
> later with a hack I used to get it to work. Should get fixed in source 
> sometime soon.
>
> Cheers,
> David
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users

David,
Are you sure there is a bug? (what ticket number?)  I can get it to work 
just fine, and just barely verified this.  In fact, I am using it in my 
textmate story bundle that I have on github.

-Ben


More information about the rspec-users mailing list