Sha256: b58144c45d0a8feeb6f86fd9a00b98586b4c9d33cad4ec2a58d3ac7538e832dd
Contents?: true
Size: 887 Bytes
Versions: 1
Compression:
Stored size: 887 Bytes
Contents
# Allure RSpec Adaptor Adaptor to use the Allure framework along with the RSpec ## 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
allure-rspec-0.2 | README.md |