abacate-0.0.0.0: Parser for a language similar to Cucumber's Gherkin

Portabilityportable
Stabilityunstable
MaintainerMarco Túlio Pimenta Gontijo <marcotmarcot@gmail.com>
Safe HaskellSafe-Infered

Language.Abacate.Types

Description

 

Synopsis

Documentation

type Abacate = FeatureSource

An Abacate file contains exactly one feature.

type Header = TextSource

The Header contains the title and description of the Feature. It is usually on the format:

 Feature: TITLE
   DESCRIPTION LINE 1
   DESCRIPTION LINE 2

data Scenario Source

The Scenario contains a list of Steps.

Constructors

Scenario 

Instances

data ScenarioOutline Source

The Steps of the ScenarioOutline can contain placeholders which are substituted by the fields of the ExamplesSection. For more information on the ScenarioOutline check https://github.com/cucumber/cucumber/wiki/Scenario-outlines.

type Background = BasicScenarioSource

The Background is basically a Scenario without Tags. It's used to create a context for the other Scenarios to run, and a Feature can only have one Background. For more information on the Background check https://github.com/cucumber/cucumber/wiki/Background.

data BasicScenario Source

This is the basic type for Scenario, ScenarioOutline and Background.

Constructors

BasicScenario 

type Tags = [Tag]Source

type Tag = TextSource

A Tag is a textual element started with @.

type Steps = [Step]Source

data Examples Source

The Examples are used to fill the value of placeholders on ScenarioOutlines.

Constructors

Examples 

Fields

eComment :: Comment
 
eName :: Text
 
eTable :: Table
 

Instances

data MultilineArg Source

Steps can have multi-line arguments. For more information check https://github.com/cucumber/cucumber/wiki/Multiline-Step-Arguments.

Constructors

MAT Table 
MAPS PyString 

type Table = [Row]Source

type Row = [Cell]Source