Sauce Documentation Formater
Usage
# spec_helper.rb
require 'sauce_documentation'
RSpec.configure do |config|
config.before(:suite) do
config.add_formatter SauceDocumentation
end
end
Identical to RSpec Documentation formatter except the example.metadata[:sauce_test_link]
is used to output the sauce test link.
Example output
2) SauceDocumentation fails and outputs sauce link
Failure/Error: expect(3).to eq(4)
expected: 4
got: 3
(compared using ==)
https://saucelabs.com/beta/tests/1234
# ./formatter_spec/sauce_documentation_spec.rb:16:in `block (2 levels) in <top (required)>'