Sha256: 254099596c427f291afa0e3b6af6b7493ff49cfe8def48ab07a5e173c15f4c43
Contents?: true
Size: 944 Bytes
Versions: 5
Compression:
Stored size: 944 Bytes
Contents
# Allure RSpec Adaptor Adaptor to use the Allure framework along with the RSpec ## What's new * *0.3.1* - 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
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
allure-rspec-0.4.1 | README.md |
allure-rspec-0.4.0 | README.md |
allure-rspec-0.3.4 | README.md |
allure-rspec-0.3.3 | README.md |
allure-rspec-0.3.2 | README.md |