Forum: RSpec [cucumber][v0.2alpha]Where could I find API docs for custom formatters?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Yingnan L. (Guest)
on 2009-02-13 12:59
(Received via mailing list)
Hi,

I'm working on update my local Cucumber to the latest version. But it
seems
the old formatter APIs(step_failed, scenario_executed, etc.) don't work
any
more. Are there some documents or even Cucumber source code I can refer
to?

Thanks in advance,
Liu
Aslak H. (Guest)
on 2009-02-13 13:28
(Received via mailing list)
API is Cucumber::Ast::Visitor. See cucumber/formatter/*.rb for examples



Den 13. feb.. 2009 kl. 08.45 skrev Yingnan L. 
<removed_email_address@domain.invalid>:
Joseph W. (Guest)
on 2009-02-13 13:37
(Received via mailing list)
Hello,

Are you trying to update an old formatter to the newest release? The old
formatter API has changed in the latest release.

At the moment the best place to look is the current formatters source
code:

lib/cucumber/formatter/*

pretty_formatter.rb is a good start.

Another good place to look would be the visitor class that contains all
the formatter hooks.

lib/cucumber/ast/visitor.rb

Note the current page on the wiki about formatters
(http://wiki.github.com/aslakhellesoy/cucumber/cust...)
applies to latest stable release (0.1.16). Once we have stablised the
Formatter api for version 0.2 we can update this page with the new
details

HTH,
--
Joseph W.
http://blog.josephwilk.net
This topic is locked and can not be replied to.