Skip to content

Instantly share code, notes, and snippets.

@aslakhellesoy
Forked from diabolo/Cucumber.haml
Created January 31, 2009 02:04
Show Gist options
  • Save aslakhellesoy/55403 to your computer and use it in GitHub Desktop.
Save aslakhellesoy/55403 to your computer and use it in GitHub Desktop.
.run
.info
date command project etc.
.summary
overview of run envisage this as being something like the progress output, with each entry being either a relative link to the feature or a drill into the feature
%ol.features
%li.feature.pass .
%li.feature.pass .
%li.feature.fail f
%li.feature.pending p
.stats
.scenario 1 scenario
.pass 3 steps passed
.fail 1 step failed
.pending steps pending (2 with no step definition)
.feature
Feature
.scenario
.title Basic Scenario
%ol.steps
%li.step.pass
.text
Passing step Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
.match
path/to/matching/step/with/line/number xx
%li.step.pass
.text
Passing step Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
.match
path/to/matching/step/with/line/number xx
%li.step.pending
.text
Pending step Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
.match
path/to/pending/step/with/line/number xx
%li.step.fail
.text
Failing stepLorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
.match
path/to/failing/step/with/line/number xx
.trace
Trace LineLorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
%li.step.skipped
.text
Skipped stepLorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
.scenario
.title Nested steps scenario
%ol.steps
%li.step.pass
.text
Passing step implemented by calling other steps
.match
path/to/matching/step/with/line/number xx
.nest
path/to/nested/step/with/line/number xx
.nest
path/to/nested/step/with/line/number xx
.nest
path/to/nested/step/with/line/number xx
.nest
path/to/nested/step/with/line/number xx
%li.step.pending
.text
Step implemented by calling other steps where one step is pending
.match
path/to/matching/step/with/line/number xx
.nest.pending
path/to/line/calling/pending/step/with/line/number xx
.nest.skipped
path/to/skipped/nested/step/with/line/number xx
.nest.skipped
path/to/skipped/nested/step/with/line/number xx
%li.step.fail
.text
Failure occuring in nested step
.match
path/to/matching/step/with/line/number xx
.nest.fail
path/to/line/calling/failing/step/with/line/number xx
.nest.skipped
path/to/skipped/nested/step/with/line/number xx
.nest.skipped
path/to/skipped/nested/step/with/line/number xx
.trace
Trace LineLorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
%li.step.skipped
.text
Skipped step
html
:background black
:color white
.pass
:color green
.pending
:color yellow
.fail
:color red
.skipped
:color blue
.match
:color gray
ul
:list-style none
.stats
:margin 2em
.summary
ul.features
li
:display inline
.trace
:margin-left 2em
.nest
:margin-left 2em
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment