This repository has been archived by the owner on Jan 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9cb5995
commit 72cb18f
Showing
3 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,5 +1,6 @@ | |||
.env | .env | ||
.rvmrc | .rvmrc | ||
.vagrant | |||
.yardoc | .yardoc | ||
coverage | coverage | ||
doc | doc | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | 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 |