gherkin_rust

A pure Rust implementation of the Gherkin (.feature file) language for the Cucumber testing framework

7 releases (4 breaking)

new 0.4.0 Aug 8, 2018
0.3.1 Jul 22, 2018
0.2.0 Jul 1, 2018
0.1.1 Jun 17, 2018
0.0.1 Jun 17, 2018

#57 in Testing

Download history 46/week @ 2018-06-21 15/week @ 2018-06-28 30/week @ 2018-07-05 10/week @ 2018-07-12 40/week @ 2018-07-19 30/week @ 2018-07-26 17/week @ 2018-08-02 96/week @ 2018-08-09

94 downloads per month

gherkin-rust

A pure Rust implementation of the Gherkin (.feature file) language for the Cucumber testing framework.

If you want to run Cucumber tests in Rust, try cucumber-rust!

Usage

[dependencies]
gherkin-rust = "^0.3"

License

This project is licensed under either of

at your option.


lib.rs:

A Gherkin parser for the Cucumber test framework.

It is intended to parse the full gamut of Cucumber .feature files that exist in the wild, as there is only a de facto standard for these files.

.feature file structure

The basic structure of a feature file is:

  • Optionally one or more tags
  • Optionally #-prefixed comments on their own line
  • The feature definition
  • An optional description
  • An optional background
  • One or more scenarios (also taggable), each including:
    • One or more steps
    • Optionally data tables or docstrings per step
    • Optionally examples, which can also be tagged

Unparsed elements

Indentation and comments are ignored by the parser. Most other things can be accessed via properties of the relevant struct.

MIT/Apache-2.0 license

Dependencies

Reverse deps