Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add Vagrantfile and TESTING.md

  • Loading branch information...
commit 72cb18fa884fb647f3baff13b7336f862a89a1c1 1 parent 9cb5995
Bernerd Schaefer bernerdschaefer authored
Showing with 56 additions and 0 deletions.
  1. +1 −0  .gitignore
  2. +48 −0 TESTING.md
  3. +7 −0 Vagrantfile
1  .gitignore
View
@@ -1,5 +1,6 @@
.env
.rvmrc
+.vagrant
.yardoc
coverage
doc
48 TESTING.md
View
@@ -0,0 +1,48 @@
+# Testing Moped
+
+Generally, all you'll need to do to test moped is pull down the repository,
+`bundle`, and run `rake`.
+
+What follows are some additional notes for running more complete tests.
+
+## Testing against MongoHQ
+
+Part of Moped's test suite runs against MongoHQ. This tests the authentication
+code, as well as testing against a real replica set.
+
+If you want to run this portion of the suite, email durran (at) gmail (dot) com
+for the credentials.
+
+## Testing Netowrking on OS X
+
+If you're on OS X and working with the networking code in Moped, you should
+also run the tests against a travis environment. Here's how I got set up for
+this:
+
+ cd ~/code
+ mkdir travis
+ cd travis
+ git clone https://github.com/travis-ci/travis-boxes.git
+ git clone https://github.com/travis-ci/travis-cookbooks.git
+
+ cd travis-boxes
+ bundle
+ thor travis:init
+
+
+ cat > config/worker.yml
+ ruby:
+ recipes:
+ - rvm
+ - rvm::multi
+ - sweeper
+ - mongodb
+
+ thor travis:box:build ruby
+
+ cd ~/code/moped
+ vagrant up
+ vagrant ssh
+ cd /vagrant
+ bundle
+ rake
7 Vagrantfile
View
@@ -0,0 +1,7 @@
+# -*- mode: ruby -*-
+# vi: set ft=ruby :
+
+# See TESTING.md for information about this.
+Vagrant::Config.run do |config|
+ config.vm.box = "travis-ruby"
+end
Please sign in to comment.
Something went wrong with that request. Please try again.