[DEPRECATED]
Please follow https://github.com/allure-framework/allure-ruby
Allure Ruby Adaptor API
This is a helper library containing the basics for any ruby-based Allure adaptor. Using it you can easily implement the adaptor for your favourite ruby testing library or you can just create the report of any other kind using the basic Allure terms.
Setup
Add the dependency to your Gemfile
gem 'allure-ruby-adaptor-api'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.
AllureRubyAdaptorApi.configure do |c|
c.output_dir = "/whatever/you/like"
endUsage examples
builder = AllureRubyAdaptorApi::Builder
builder.start_suite "some_suite", :severity => :normal
builder.start_test "some_suite", "some_test", :feature => "Some feature", :severity => :critical
builder.start_step "some_suite", "some_test", "first step"
builder.add_attachment "some_suite", "some_test", :file => Tempfile.new("somefile")
builder.stop_step "some_suite", "some_test", "first step"
builder.start_step "some_suite", "some_test", "second step"
builder.add_attachment "some_suite", "some_test", :step_id => "second step", :file => Tempfile.new("somefile")
builder.stop_step "some_suite", "some_test", "second step"
builder.start_step "some_suite", "some_test", "third step"
builder.stop_step "some_suite", "some_test", "third step", :failed
builder.stop_test "some_suite", "some_test", :status => :broken, :exception => Exception.new("some error")
builder.stop_suite "some_suite"
# This will generate the results within your output directory
builder.build!
Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.
