0.0
No commit activity in last 3 years
No release in over 3 years
Sauce rspec integration.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.0.1
>= 1.10.6
~> 0.8.3
~> 0.10.2
~> 10.4.2
~> 0.34.2
~> 1.0.0
~> 1.21.0

Runtime

>= 2.3.8
>= 0.2
>= 2.13
>= 3.5.0
 Project Readme

Sauce RSpec

Build Status Gem Version Coverage Status

A new Ruby gem 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.

# 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

If you're using the Sauce Jenkins plugin then ENV['JENKINS_BUILD_NUMBER'] will already contain the job name and build number.