Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Commit

Permalink
Add Vagrantfile and TESTING.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bernerdschaefer committed Apr 18, 2012
1 parent 9cb5995 commit 72cb18f
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.env
.rvmrc
.vagrant
.yardoc
coverage
doc
Expand Down
48 changes: 48 additions & 0 deletions TESTING.md
Original file line number Diff line number Diff line change
@@ -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 changes: 7 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 72cb18f

Please sign in to comment.