WorldModule::Annotate
jfinkhaeuser edited this page Dec 17, 2014
·
2 revisions
Annotations are an enhanced version of cucumber's embed functionality - they allow you to annotate your current step with extra information:
Given(/I do foo/) do
annotate "foo"
annotate :foo => 'bar', :something => 'else'
end
If you use a report formatter that honours cucumber's embed functionality (e.g. --format json_pretty
), then these annotations will be part of the step reporting data, in JSON format.