Skip to content

Commit

Permalink
created a test suite to collect all tests running without an error
Browse files Browse the repository at this point in the history
  • Loading branch information
pavlobaron committed May 6, 2012
1 parent 99e6c6f commit df5c6d7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Expand Up @@ -41,7 +41,16 @@ and runnable with riak_mongo. You need to do following:
$ ./init.sh $ ./init.sh
$ ./test.sh update.js $ ./test.sh update.js


Before you can use the suite, you need to initialize it. The JS code will be checked out of the Mongo github repository. You need this step only once. After that, you only need to call test.sh. Its parameter is the name of the test JS included with the Mongo distribution. Look in your test/mongo/jstests folder to find the tests you can run. Before you can use the suite, you need to initialize it. The JS code
will be checked out of the Mongo github repository. You need this step
only once. After that, you only need to call test.sh. Its parameter is
the name of the test JS included with the Mongo distribution. Look in
your test/mongo/jstests folder to find the tests you can run
separately. I you want to run the suite of the tests already running
without errors, just run:

$ cd test
$ ./test_suite.sh


No auth, SSL and no IPv6 are considered yet. No auth, SSL and no IPv6 are considered yet.


Expand Down
8 changes: 8 additions & 0 deletions test/test_suite.sh
@@ -0,0 +1,8 @@
#!/bin/sh

cd mongo
git update
cd jstests

echo "running JS test stuite"
mongo --verbose -port 32323 insert1.js insert2.js

0 comments on commit df5c6d7

Please sign in to comment.