[rspec-devel] [Cucumber] new usage formatter

aslak hellesoy aslak.hellesoy at gmail.com
Sat Mar 21 15:38:09 EDT 2009


http://github.com/aslakhellesoy/cucumber/commit/60bcff6ceb1efb0a5439d2bbcfd30d1d8e7a910b

This should be of interest to anyone writing editor code completion and
navigation support for Cucumber (notably Cucumber.tmbubdle)
Try this in cucumber's root dir: bin/cucumber examples/self_test/features -f
usage --dry-run

This gives the following output (truncated):

/^passing without a table$/          #
examples/self_test/features/step_definitions/sample_steps.rb:12
 Given passing without a table       #
examples/self_test/features/background/failing_background_after_success.feature:4
 Given <state> without a table       #
examples/self_test/features/outline_sample.feature:6
 Given <other_state> without a table #
examples/self_test/features/outline_sample.feature:7
/^failing without a table$/    #
examples/self_test/features/step_definitions/sample_steps.rb:15
 Given failing without a table #
examples/self_test/features/background/failing_background.feature:4
 Given failing without a table #
examples/self_test/features/background/scenario_outline_failing_background.feature:4

I'm hoping the Following TODOs from Cucumber.tmbundle can use this:

   - Goto step definition from feature file.
   - From a step definition be able to pull up a list of features using that
   step and to jump to them.

Aslak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-devel/attachments/20090321/0cbb0d47/attachment.html>


More information about the rspec-devel mailing list