Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A reimplementation of RSpec's story framework, based on Treetop.
branch: html-visitor

This branch is 6255 commits behind cucumber:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
config
examples
lib
script
spec
tasks
website
.gitignore
History.txt
License.txt
Manifest.txt
README.txt
Rakefile
setup.rb

README.txt

= cucumber

* FIX http://rspec.info/cucumber

== DESCRIPTION:

This code parses RSpec stories. It uses a Treetop grammar to do the job, and 
this grammar is extended by users of the library. This design makes the code
very compact, and it makes it easy to give precise line and column info on 
parse errors. Further, when a step fails, the story file will appear in the
stack trace, along with regular ruby files.

== FEATURES/PROBLEMS:

* Run examples with:
** ruby -Ilib bin/cucumber examples/simple --require examples/simple/steps
** ruby -Ilib bin/cucumber examples/web --require examples/web/steps

* TODO: Refactor: Extract explicit node classes with RDoc (for better API doc)
* TODO: OK Get rid of the compile method. Compile the parser in Rake.
* TODO: Make grammar support \r\n, \r and \n (Add some fixture stories for that) 
* TODO: OK Make grammar support indentation
* TODO: OK Make grammar be totally relaxed about narrative
* TODO: OK Add a yaml file for different languages
* TODO: OK Custom nodes for the syntax tree
* TODO: OK Actually execute the stories
* TODO: Make rake run specs by default
* TODO: OK Make it work with pure ruby regexen
* TODO: Make it work with strings
* TODO: bin/cucumber --require [dir|file|glob]* --language no --format [file]*

* Pending steps shold print a block of code that can be pasted into code
* cucumber --where "Some text from a step" that prints "__FILE__:__LINE__ (STEP PATTERN)" 
* Customisable trace output (like javascriptlint)
* Experiment: Make $variables become @variables

== SYNOPSIS:

  FIX (code sample of usage)

== REQUIREMENTS:

* gem install treetop

== INSTALL:

* gem install cucumber

== LICENSE:

(The MIT License)

Copyright (c) 2008 Aslak Hellesøy

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Something went wrong with that request. Please try again.