Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Run your tests on multiple rubies

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 autotest
Octocat-spinner-32 bin
Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 README.md
Octocat-spinner-32 octotest.gemspec
README.md

Octotest

Octotest will run your tests in multiple rubies using RVM. Octotest only works for projects using bundler.

Installation

gem install octotest

Usage

Add the following to autotest/discover.rb

Autotest.add_discovery { "octotest" }

# optional hardcoded rubies for this app
ENV["OCTOTEST_RUBIES"] = "ruby-1.9.2 ruby-1.8.7@somegemset"

Can alternately set up the environment variable in your shell environment:

export OCTOTEST_RUBIES="ruby-1.9.2 ruby-1.8.7@somegemset"

Run autotest

Octotest: using ruby-1.8.7
Octotest: bundler not found, installing
Successfully installed bundler-1.0.2
1 gem installed
Octotest: gems out of date, running bundle install
Fetching source index for http://rubygems.org/
Installing rspec (2.0.0.rc) 
Using bundler (1.0.2) 
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.

SomeLibrary
  has a passing test

Finished in 0.00075 seconds
1 example, 0 failures

Octotest: using ruby-1.9.2

SomeLibrary
  has a passing test

Finished in 0.00124 seconds
1 example, 0 failures
Something went wrong with that request. Please try again.