aboutsummaryrefslogtreecommitdiff
path: root/node_modules/mongodb-core/TESTING.md
blob: fe03ea0f7cff342bc04c4b427bb8598760cada61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Testing setup
=============

Single Server
-------------
mongod --dbpath=./db

Replicaset
----------
mongo --nodb
var x = new ReplSetTest({"useHostName":"false", "nodes" : {node0 : {}, node1 : {}, node2 : {}}})
x.startSet();
var config = x.getReplSetConfig()
x.initiate(config);

Mongos
------
var s = new ShardingTest( "auth1", 1 , 0 , 2 , {rs: true, noChunkSize : true});