Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added mongo automated JS tests

  • Loading branch information...
commit 2e4f607e5b53458dc40e5a0889e55e01768dec7f 1 parent a5b516d
@pavlobaron authored
Showing with 15 additions and 4 deletions.
  1. +15 −4
@@ -12,13 +12,15 @@ To install, add the following two lines at the end of your riak's `etc/vm.args`
We use the low level `riak_kv` Erlang API to talk to the local store.
-## Run
+## Run/Test
-You can connect to it from the Mongo shell (in this case, on the same machine) using:
+You can connect to it from the Mongo shell. There is a script test/ which starts
+the preconfigured interactive mongo shell when called without parameters:
- $ mongo --verbose -port 32323 collection
+ $ cd test
+ $ ./
-And do some basic commands:
+Then you can do some basic commands:
> db.things.insert({a:1, b:2})
> db.things.findOne()
@@ -31,6 +33,15 @@ And do some basic commands:
> x.a = 2
> db.things.update({_id:x._id}, x, false)
+The JavaScript test suite included with the mongo source distribution is also integrated
+and runnable with riak_mongo. You need to do following:
+ $ cd test
+ $ ./
+ $ ./ 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 It's 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.
No auth, SSL and no IPv6 are considered yet.
## Mapping
Please sign in to comment.
Something went wrong with that request. Please try again.