This repository contains Allure adaptor for Cucumber framework.
Add this line to your application's Gemfile:
gem 'allure-cucumber'
And then execute:
$ bundle
Or install it yourself as:
$ gem install allure-cucumber
By default, Allure XML files are stored in gen/allure-results
. To change this add the following in features/support/env.rb
file:
AllureCucumber.configure do |c|
c.output_dir = "/output/dir"
end
Put the following in your features/support/env.rb
file:
require 'allure-cucumber'
Use --format AllureCucumber::Formatter
while running cucumber or add it to cucumber.yml
You can also attach screenshots, logs or test data to steps.
# file: features/support/env.rb
include AllureCucumber::DSL
attach_file(title, file)
This adapter only generates XML files containing information about tests. See wiki section on how to generate report.