Sha256: ef9ee040937c8f67f635d3a71d27b2ced197a5665e4ae5be3136061085b55fc9

Contents?: true

Size: 1.25 KB

Versions: 1

Compression:

Stored size: 1.25 KB

Contents

# Sauce RSpec

[![Build Status](https://travis-ci.org/bootstraponline/sauce_rspec.svg)](https://travis-ci.org/bootstraponline/sauce_rspec/builds)
[![Gem Version](https://badge.fury.io/rb/sauce_rspec.svg)](https://rubygems.org/gems/sauce_rspec)
[![Coverage Status](https://coveralls.io/repos/bootstraponline/sauce_rspec/badge.svg?branch=master&service=github&nocache=1)](https://coveralls.io/github/bootstraponline/sauce_rspec?branch=master)

A new [Ruby gem](https://github.com/bootstraponline/meta/wiki/Sauce_Ruby_Integration_Roadmap) for using RSpec on Sauce.

```
require 'sauce_rspec'
require 'sauce_rspec/rspec'
```

Note that for Jenkins support, you must enable verbose mode in test-queue
otherwise stdout will not be printed in the Jenkins log.

```
export TEST_QUEUE_VERBOSE=true
```

## Naming jobs

Use Jenkins environment variables to correctly name jobs.

```ruby
# example sauce_helper.rb
require 'sauce_platforms'

SauceRSpec.config do |config|
  config.caps = [
    Platform.windows_10.firefox.v41,
    Platform.windows_10.chrome.v45
  ]

  build = if jenkins?
            [ENV['JOB_NAME'], ENV['BUILD_NUMBER']].join('-')
          else
            "sauce_rspec-#{SecureRandom.random_number(999_999)}"
          end

  config.default_caps({ build: build })
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sauce_rspec-2.0.0 README.md