Sha256: 8b564ea07e1f55d0197c9fc5deae822ff27c2080165ab371ce09a0d694852312

Contents?: true

Size: 965 Bytes

Versions: 43

Compression:

Stored size: 965 Bytes

Contents

# Running Mongoid Tests

## Quick Start

The test suite requires shared tooling that is stored in a separate repository
and is referenced as a submodule. After checking out the desired driver
branch, check out the matching submodules:

    git submodule init
    git submodule update

Spin up a MongoDB deployment against which to run the Mongoid specs.
Mongoid specs support a variety of MongoDB topologies, but the simplest is
a single MongoDB instance:

    # Launch mongod in one terminal
    mkdir /tmp/mdb
    mongod --dbpath /tmp/mdb

Run the test suite in a separate terminal:

    rake


## Caveats

### "Too many open files" error

On MacOS, you may encounter a "Too many open files" error on the MongoDB server
when running the tests. If this happens, stop the server, run the command
`ulimit -n 10000` in the same terminal session as the server, and restart
the server. This will increase the number of files that can be opened.
Then, re-run the tests.

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
mongoid-9.0.4 spec/README.md
mongoid-8.1.8 spec/README.md
mongoid-8.1.7 spec/README.md
mongoid-9.0.3 spec/README.md
mongoid-8.1.6 spec/README.md
mongoid-9.0.2 spec/README.md
mongoid-9.0.1 spec/README.md
mongoid-9.0.0 spec/README.md
mongoid-8.0.8 spec/README.md
mongoid-8.1.5 spec/README.md
mongoid-8.1.4 spec/README.md
mongoid-8.0.7 spec/README.md
mongoid-8.1.3 spec/README.md
mongoid-8.1.2 spec/README.md
mongoid-8.0.6 spec/README.md
mongoid-7.5.4 spec/README.md
mongoid-8.1.1 spec/README.md
mongoid-8.0.5 spec/README.md
mongoid-8.1.0 spec/README.md
mongoid-7.5.3 spec/README.md