Sha256: 2f25d8bfb6c8b3c6931d59fe93f94e1c0abc156dfe7af2272e8dc64bfc5b1ee2

Contents?: true

Size: 942 Bytes

Versions: 2

Compression:

Stored size: 942 Bytes

Contents

# Allure RSpec Adaptor

Adaptor to use the Allure framework along with the RSpec

## What's new

* *0.3* - Allure 1.4.0 format support.

## Setup

Add the dependency to your Gemfile

```ruby
 gem 'allure-rspec'
```

And then include it in your spec_helper.rb:

```ruby
    RSpec.configure do |c|
      c.include AllureRSpec::Adaptor
    end
```

## Advanced options

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

```ruby
    AllureRSpec.configure do |c|
      c.output_dir = "/whatever/you/like"
    end
```

## Usage examples

```ruby
describe MySpec do

  it "should be steps enabled" do

    step "step1" do
      attach_file "screenshot1", take_screenshot_as_file
    end

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

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

    attach_file "screenshot2", take_screenshot_as_file
  end
end
```

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
allure-rspec-0.3.1 README.md
allure-rspec-0.3 README.md