Skip to content
This repository has been archived by the owner. It is now read-only.
Branch: master
Clone or download
Latest commit 929130b Oct 17, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib Upgrade to the latest allure-ruby-adaptor-api (#75) Dec 28, 2016
spec Support for missing labels (#60) Feb 2, 2016
Gemfile Migrate to Rspec 3.0 Aug 21, 2014
Gemfile.lock Upgrade to the latest allure-ruby-adaptor-api (#75) Dec 28, 2016 add deprecation warning Oct 16, 2019
allure-rspec.gemspec Upgrade to the latest allure-ruby-adaptor-api (#75) Dec 28, 2016
logo.png Allure 1.4.0 format support. Jul 10, 2014


Please follow

Allure RSpec Adaptor

Gem Version

Adaptor to use the Allure framework along with the RSpec. See an example project to take a quick tour.

What's new

See the releases tab.


Add the dependency to your Gemfile. Choose the version carefully:

  • 0.5.x - for RSpec2.
  • <= 0.6.7 - for RSpec < 3.2.
  • = 0.6.9 - for RSpec >= 3.2.

 gem 'allure-rspec'

And then include it in your spec_helper.rb:

    require 'allure-rspec'

    RSpec.configure do |c|
      c.include AllureRSpec::Adaptor

Advanced options

You can specify the directory where the Allure test results will appear. By default it would be 'gen/allure-results' within your current directory.

    AllureRSpec.configure do |c|
      c.output_dir = "/whatever/you/like" # default: gen/allure-results
      c.clean_dir = false # clean the output directory first? (default: true)
      c.logging_level = Logger::DEBUG # logging level (default: DEBUG)

Usage examples

describe MySpec, :feature => "Some feature", :severity => :normal do

  before(:step) do |s|
    puts "Before step #{s.current_step}"

  it "should be critical", :story => "First story", :severity => :critical, :testId => 99 do
    "string".should == "string"

  it "should be steps enabled", :story => ["First story", "Second story"], :testId => 31 do |e|

    e.step "step1" do |s|
      s.attach_file "screenshot1", take_screenshot_as_file

    e.step "step2" do
      5.should be > 0

    e.step "step3" do
      0.should == 0

    e.attach_file "screenshot2", take_screenshot_as_file
You can’t perform that action at this time.