[rspec-users] cucumber custom formatters

aslak hellesoy aslak.hellesoy at gmail.com
Fri Dec 12 19:06:13 EST 2008

On Sat, Dec 13, 2008 at 12:55 AM, Emmanuel Pinault <seatmanu at gmail.com>wrote:

> Hi
> So I built a custom formatter as the default html provided seems to lack
> few information (like number of scenarios that passed,failed, skipped ..)
> I cannot seem to load my custom scenario
> I called it my_formatter.rb and class is MyFormatter.
> I tried cucumber -r my_formatter mytest.feature
> I tried cucumber -r my mytest.feature
> and no matter what I am getting the help menu with invalid format...

Is the explanation of --format not clear? Have you tried:

cucumber -r my_formatter -f MyFormatter mytest.feature

> also, is there a place to understand all the available hooks and order they
> are called? Looking at the html, pretty and progress , I can see a lot of
> available hooks with some that requires to call an accept method...

What do you mean by hooks? This?

#accept is part of the internal API to traverse the internal structure of
features. It's using the visitor pattern. Are you familiar with that?


> Any ideas?
> Thanks
> Emmanuel
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20081213/9db20839/attachment.html>

More information about the rspec-users mailing list