Skip to content
Run your tests on multiple rubies http://github.com/ddollar/octotest
Ruby
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
autotest
bin
lib
spec
.gitignore
Gemfile
Gemfile.lock
README.md
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.