Sha256: 9c4d06261d83930272ec6ad92d1fadb61f99abd70f66a263894864e1f8cd456c
Contents?: true
Size: 1.78 KB
Versions: 2
Compression:
Stored size: 1.78 KB
Contents
= shallot shallot can lex and parse just enough Gherkin to give you: {:feature=>"The name of the feature", :background=> [" Each step in the background", " But without any additional parsing", " Or validation"], :scenarios=> [{:name=>"And each scenario", :outline=>false, :tags=>["shallot", "regression", "bug"], :contents=> [" With tags, including those inherited", " From the feature level tags"]}, {:name=>"As well as scenario outlines", :outline=>true, :tags=>["shallot", "feature"], :contents=> [" With support for the following", " \"\"\"", " long-quoted", " sections", " \"\"\"", " While no extra <kind> for examples", " Examples:", " | kind |", " | parsing |", " | lexing |"]}]} The above results from calling Shallot.parse(f), where f is an open File handle on the following feature file: @shallot Feature: The name of the feature This gets completely ignored. Background: Each step in the background But without any additional parsing Or validation @regression @bug Scenario: And each scenario With tags, including those inherited From the feature level tags @feature Scenario Outline: As well as scenario outlines With support for the following """ long-quoted sections """ While no extra <kind> for examples Examples: | kind | | parsing | | lexing | == Copyright Copyright (c) 2011 Noble Samurai. See LICENSE.txt for further details.
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
shallot-0.3 | README.rdoc |
shallot-0.2 | README.rdoc |