Peter Sergeant > Test-BDD-Cucumber-0.15 > Test::BDD::Cucumber::Parser

Download:
Test-BDD-Cucumber-0.15.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.15   Source   Latest Release: Test-BDD-Cucumber-0.26

NAME ^

Test::BDD::Cucumber::Parser - Parse Feature files

VERSION ^

version 0.15

DESCRIPTION ^

Parse Feature files in to a set of data classes

SYNOPSIS ^

 # Returns a Test::BDD::Cucumber::Model::Feature object
 my $feature = Test::BDD::Cucumber::Parser->parse_file(
    't/data/features/basic_parse.feature' );

METHODS ^

parse_string

parse_file

Both methods accept a single string as their argument, and return a Test::BDD::Cucumber::Model::Feature object on success.

ERROR HANDLING ^

Test::BDD::Cucumber uses Ouch for exception handling. Error originating in this class tend to have a code of parse_error and a Test::BDD::Cucumber::Model::Line object for data.

AUTHOR ^

Peter Sergeant pete@clueball.com

LICENSE ^

Copyright 2011, Peter Sergeant; Licensed under the same terms as Perl

syntax highlighting: