Build Status
Jasmine::Sauce::Ci
Rake tasks for running your Jasmine suite via a local browse or through SauceLabs using the Selenium Webdriver.
Can be used in your CI builds to enable running Jasmine suites.
Installation
Add this line to your application's Gemfile:
gem 'jasmine-selenium-sauce'
And then execute:
$ bundle
Or install it yourself as:
$ gem install jasmine-selenium-sauce
Running Jasmine via SauceLabs
rake jasmine:sauce
Required Environment Variables
Requires the following environment variables to be set:
SAUCELABS_URL
URL for Saucelabs with your credentials included:
SAUCELABS_URL=http://username:[email protected]:80/wd/hub
JASMINE_URL
Where your Jasmine tests are hosted:
JASMINE_URL=http://my.server.com/jasmine
SAUCE_BROWSER
Which browser SauceLabs should use to run your tests:
SAUCE_BROWSER=chrome
Optional Configuration
RSpec
You can specify the format of the RSpec report with:
JASMINE_SPEC_FORMAT=documentation
Sauce Labs Configuration
See sauce_config.rb
Running Jasmine via local browser
rake jasmine:browser
Required Environment Variables
Requires the following environment variables to be set:
JASMINE_URL
Where your Jasmine tests are hosted:
JASMINE_URL=http://my.server.com/jasmine
LOCAL_BROWSER
Which browser that will be used to run your tests. Selenium may require a driver be installed depending the driver. See the Selenium documentation for more details.
LOCAL_BROWSER=firefox
See Which browsers does WebDriver support?.
Optional Configuration
RSpec
You can specify the format of the RSpec report with:
JASMINE_SPEC_FORMAT=documentation
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request