Yingnan Liu
2009-Feb-13 07:45 UTC
[rspec-users] [cucumber][v0.2alpha]Where could I find API docs for custom formatters?
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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20090213/85095611/attachment.html>
Aslak Hellesøy
2009-Feb-13 11:06 UTC
[rspec-users] [cucumber][v0.2alpha]Where could I find API docs for custom formatters?
API is Cucumber::Ast::Visitor. See cucumber/formatter/*.rb for examples Den 13. feb.. 2009 kl. 08.45 skrev Yingnan Liu <liuyn.neph at gmail.com>:> 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 > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users
Joseph Wilk
2009-Feb-13 11:12 UTC
[rspec-users] [cucumber][v0.2alpha]Where could I find API docs for custom formatters?
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/custom-formatters) 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 Wilk http://blog.josephwilk.net Yingnan Liu wrote:> 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 > ------------------------------------------------------------------------ > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users