# Comments that appear before the feature are associated with the feature
@scenarios
Feature: Displaying Scenarios
As a reader of the documentation I expect that scenario are documented correctly
# Comments after the feature description belong to the background or first scenario
Background:
Given this background step
@first @bvt
Scenario: No Step Scenario
@second @bvt
Scenario: Scenario With Steps
Given this first step
When this second step
Then this third step
And I created a rakefile with:
require 'yard'
YARD::Rake::YardocTask.new do |t|
t.files = ['features/**/feature1.feature']
end
Relates to: https://github.com/burtlo/yard-cucumber/issues/65
OS: Linux Ruby 2.2.1... yard (0.8.7.6) yard-cucumber (3.0.0) cucumber (2.3.3) cucumber-core (1.4.0, 1.3.0) gherkin (3.2.0) gherkin3 (3.1.2)
I've copied a piece of an example scenario:
And I created a rakefile with: require 'yard'
YARD::Rake::YardocTask.new do |t| t.files = ['features/**/feature1.feature'] end
My output is: rake yard
An error returns for each feature file like:
For what it's worth all of this works correctly on a windows machine