Permalink
Browse files

Added coverage code to run tests through jscoverage

  • Loading branch information...
1 parent 90b8311 commit b874a0c3894f106422e5876d2bfd512c2d0776fb @christkv christkv committed Sep 23, 2012
Showing with 76 additions and 17 deletions.
  1. +5 −0 Makefile
  2. +1 −0 test/admin_test.js
  3. +1 −0 test/aggregation_framework_test.js
  4. +1 −0 test/authentication_test.js
  5. +1 −0 test/auxilliary/authentication_test.js
  6. +1 −0 test/auxilliary/repl_set_ssl_test.js
  7. +1 −0 test/auxilliary/replicaset_auth_discovery_test.js
  8. +1 −0 test/auxilliary/replicaset_auth_test.js
  9. +1 −0 test/auxilliary/single_server_kill_reconnect.js
  10. +1 −0 test/auxilliary/ssl_test.js
  11. +1 −0 test/collection_test.js
  12. +1 −0 test/commands_test.js
  13. +1 −0 test/connect_test.js
  14. +1 −0 test/connection/connection_pool_test.js
  15. +1 −0 test/connection_test.js
  16. +1 −0 test/cursor_test.js
  17. +1 −0 test/cursorstream_test.js
  18. +1 −0 test/custom_pk_test.js
  19. +1 −0 test/db_test.js
  20. +1 −0 test/error_test.js
  21. +1 −0 test/exception_handling_test.js
  22. +1 −0 test/find_test.js
  23. +1 −0 test/geo_search_test.js
  24. +1 −0 test/gridstore/grid_store_file_test.js
  25. +1 −0 test/gridstore/grid_store_stream_test.js
  26. +1 −0 test/gridstore/grid_store_test.js
  27. +1 −0 test/gridstore/grid_test.js
  28. +1 −0 test/gridstore/gridstore_direct_streaming_test.js
  29. +1 −0 test/gridstore/readstream_test.js
  30. +1 −0 test/index_test.js
  31. +1 −0 test/insert_test.js
  32. +1 −0 test/logging_test.js
  33. +12 −16 test/map_reduce_test.js
  34. +1 −0 test/mongo_reply_test.js
  35. +1 −0 test/multiple_dbs_on_connection_pool_test.js
  36. +1 −0 test/objectid_test.js
  37. +1 −0 test/raw_test.js
  38. +1 −0 test/reaper_test.js
  39. +1 −0 test/regexp_test.js
  40. +1 −0 test/remove_test.js
  41. +1 −0 test/replicaset/connect_test.js
  42. +1 −0 test/replicaset/count_test.js
  43. +1 −1 test/replicaset/insert_and_query_on_dead_primary_test.js
  44. +1 −0 test/replicaset/insert_test.js
  45. +1 −0 test/replicaset/map_reduce_test.js
  46. +1 −0 test/replicaset/query_secondaries_test.js
  47. +1 −0 test/replicaset/read_preference_replicaset_test.js
  48. +1 −0 test/replicaset/read_preferences_all_levels_legacy_test.js
  49. +1 −0 test/replicaset/read_preferences_all_levels_test.js
  50. +1 −0 test/replicaset/read_preferences_single_test.js
  51. +1 −0 test/replicaset/read_preferences_spec.js
  52. +1 −0 test/replicaset/shutdown_test.js
  53. +1 −0 test/replicaset/strategies_test.js
  54. +1 −0 test/replicaset/tags_test.js
  55. +1 −0 test/replicaset/two_server_tests.js
  56. +1 −0 test/sharded/operations_test.js
  57. +1 −0 test/sharded/partial_read_test.js
  58. +1 −0 test/sharded/read_preferences_sharded_test.js
  59. +1 −0 test/sharded/simple_sharded_setup_test.js
  60. +1 −0 test/streaming_test.js
  61. +1 −0 test/unicode_test.js
View
@@ -6,6 +6,11 @@ name = all
total: build_native
+test-coverage:
+ rm -rf lib-cov/
+ jscoverage lib/ lib-cov/
+ @TEST_COVERAGE=true nodeunit test/ test/gridstore test/connection
+
build_native:
test: build_native
View
@@ -1,4 +1,5 @@
var mongodb = process.env['TEST_NATIVE'] != null ? require('../lib/mongodb').native() : require('../lib/mongodb').pure();
+if(process.env['TEST_COVERAGE']) var mongodb = process.env['TEST_NATIVE'] != null ? require('../lib-cov/mongodb').native() : require('../lib-cov/mongodb').pure();
var useSSL = process.env['USE_SSL'] != null ? true : false;
var native_parser = (process.env['TEST_NATIVE'] != null);
@@ -1,4 +1,5 @@
var mongodb = process.env['TEST_NATIVE'] != null ? require('../lib/mongodb').native() : require('../lib/mongodb').pure();
+if(process.env['TEST_COVERAGE']) var mongodb = process.env['TEST_NATIVE'] != null ? require('../lib-cov/mongodb').native() : require('../lib-cov/mongodb').pure();
var useSSL = process.env['USE_SSL'] != null ? true : false;
var native_parser = (process.env['TEST_NATIVE'] != null);
@@ -1,4 +1,5 @@
var mongodb = process.env['TEST_NATIVE'] != null ? require('../lib/mongodb').native() : require('../lib/mongodb').pure();
+if(process.env['TEST_COVERAGE']) var mongodb = process.env['TEST_NATIVE'] != null ? require('../lib-cov/mongodb').native() : require('../lib-cov/mongodb').pure();
var useSSL = process.env['USE_SSL'] != null ? true : false;
var testCase = require('nodeunit').testCase,
@@ -1,4 +1,5 @@
var mongodb = process.env['TEST_NATIVE'] != null ? require('../../lib/mongodb').native() : require('../../lib/mongodb').pure();
+if(process.env['TEST_COVERAGE']) var mongodb = process.env['TEST_NATIVE'] != null ? require('../../lib-cov/mongodb').native() : require('../../lib-cov/mongodb').pure();
var testCase = require('nodeunit').testCase,
async = require('async'),
@@ -1,4 +1,5 @@
var mongodb = process.env['TEST_NATIVE'] != null ? require('../../lib/mongodb').native() : require('../../lib/mongodb').pure();
+if(process.env['TEST_COVERAGE']) var mongodb = process.env['TEST_NATIVE'] != null ? require('../../lib-cov/mongodb').native() : require('../../lib-cov/mongodb').pure();
var testCase = require('nodeunit').testCase,
debug = require('util').debug,
@@ -1,4 +1,5 @@
var mongodb = process.env['TEST_NATIVE'] != null ? require('../../lib/mongodb').native() : require('../../lib/mongodb').pure();
+if(process.env['TEST_COVERAGE']) var mongodb = process.env['TEST_NATIVE'] != null ? require('../../lib-cov/mongodb').native() : require('../../lib-cov/mongodb').pure();
var testCase = require('nodeunit').testCase,
debug = require('util').debug,
@@ -1,4 +1,5 @@
var mongodb = process.env['TEST_NATIVE'] != null ? require('../../lib/mongodb').native() : require('../../lib/mongodb').pure();
+if(process.env['TEST_COVERAGE']) var mongodb = process.env['TEST_NATIVE'] != null ? require('../../lib-cov/mongodb').native() : require('../../lib-cov/mongodb').pure();
var testCase = require('nodeunit').testCase,
debug = require('util').debug,
@@ -1,4 +1,5 @@
var mongodb = process.env['TEST_NATIVE'] != null ? require('../../lib/mongodb').native() : require('../../lib/mongodb').pure();
+if(process.env['TEST_COVERAGE']) var mongodb = process.env['TEST_NATIVE'] != null ? require('../../lib-cov/mongodb').native() : require('../../lib-cov/mongodb').pure();
var testCase = require('nodeunit').testCase,
debug = require('util').debug,
@@ -1,4 +1,5 @@
var mongodb = process.env['TEST_NATIVE'] != null ? require('../../lib/mongodb').native() : require('../../lib/mongodb').pure();
+if(process.env['TEST_COVERAGE']) var mongodb = process.env['TEST_NATIVE'] != null ? require('../../lib-cov/mongodb').native() : require('../../lib-cov/mongodb').pure();
var testCase = require('nodeunit').testCase,
debug = require('util').debug,
View
@@ -1,4 +1,5 @@
var mongodb = process.env['TEST_NATIVE'] != null ? require('../lib/mongodb').native() : require('../lib/mongodb').pure();
+if(process.env['TEST_COVERAGE']) var mongodb = process.env['TEST_NATIVE'] != null ? require('../lib-cov/mongodb').native() : require('../lib-cov/mongodb').pure();
var useSSL = process.env['USE_SSL'] != null ? true : false;
var testCase = require('nodeunit').testCase,
View
@@ -1,4 +1,5 @@
var mongodb = process.env['TEST_NATIVE'] != null ? require('../lib/mongodb').native() : require('../lib/mongodb').pure();
+if(process.env['TEST_COVERAGE']) var mongodb = process.env['TEST_NATIVE'] != null ? require('../lib-cov/mongodb').native() : require('../lib-cov/mongodb').pure();
var testCase = require('nodeunit').testCase,
debug = require('util').debug,
View
@@ -1,4 +1,5 @@
var mongodb = process.env['TEST_NATIVE'] != null ? require('../lib/mongodb').native() : require('../lib/mongodb').pure();
+if(process.env['TEST_COVERAGE']) var mongodb = process.env['TEST_NATIVE'] != null ? require('../lib-cov/mongodb').native() : require('../lib-cov/mongodb').pure();
var useSSL = process.env['USE_SSL'] != null ? true : false;
var testCase = require('nodeunit').testCase,
@@ -1,4 +1,5 @@
var mongodb = process.env['TEST_NATIVE'] != null ? require('../../lib/mongodb').native() : require('../../lib/mongodb').pure();
+if(process.env['TEST_COVERAGE']) var mongodb = process.env['TEST_NATIVE'] != null ? require('../../lib-cov/mongodb').native() : require('../../lib-cov/mongodb').pure();
var testCase = require('nodeunit').testCase,
debug = require('util').debug,
View
@@ -1,4 +1,5 @@
var mongodb = process.env['TEST_NATIVE'] != null ? require('../lib/mongodb').native() : require('../lib/mongodb').pure();
+if(process.env['TEST_COVERAGE']) var mongodb = process.env['TEST_NATIVE'] != null ? require('../lib-cov/mongodb').native() : require('../lib-cov/mongodb').pure();
var useSSL = process.env['USE_SSL'] != null ? true : false;
var testCase = require('nodeunit').testCase,
View
@@ -1,4 +1,5 @@
var mongodb = process.env['TEST_NATIVE'] != null ? require('../lib/mongodb').native() : require('../lib/mongodb').pure();
+if(process.env['TEST_COVERAGE']) var mongodb = process.env['TEST_NATIVE'] != null ? require('../lib-cov/mongodb').native() : require('../lib-cov/mongodb').pure();
var useSSL = process.env['USE_SSL'] != null ? true : false;
var testCase = require('nodeunit').testCase,
@@ -1,4 +1,5 @@
var mongodb = process.env['TEST_NATIVE'] != null ? require('../lib/mongodb').native() : require('../lib/mongodb').pure();
+if(process.env['TEST_COVERAGE']) var mongodb = process.env['TEST_NATIVE'] != null ? require('../lib-cov/mongodb').native() : require('../lib-cov/mongodb').pure();
var useSSL = process.env['USE_SSL'] != null ? true : false;
var testCase = require('nodeunit').testCase,
View
@@ -1,4 +1,5 @@
var mongodb = process.env['TEST_NATIVE'] != null ? require('../lib/mongodb').native() : require('../lib/mongodb').pure();
+if(process.env['TEST_COVERAGE']) var mongodb = process.env['TEST_NATIVE'] != null ? require('../lib-cov/mongodb').native() : require('../lib-cov/mongodb').pure();
var useSSL = process.env['USE_SSL'] != null ? true : false;
var testCase = require('nodeunit').testCase,
View
@@ -1,4 +1,5 @@
var mongodb = process.env['TEST_NATIVE'] != null ? require('../lib/mongodb').native() : require('../lib/mongodb').pure();
+if(process.env['TEST_COVERAGE']) var mongodb = process.env['TEST_NATIVE'] != null ? require('../lib-cov/mongodb').native() : require('../lib-cov/mongodb').pure();
var useSSL = process.env['USE_SSL'] != null ? true : false;
var testCase = require('nodeunit').testCase,
View
@@ -1,4 +1,5 @@
var mongodb = process.env['TEST_NATIVE'] != null ? require('../lib/mongodb').native() : require('../lib/mongodb').pure();
+if(process.env['TEST_COVERAGE']) var mongodb = process.env['TEST_NATIVE'] != null ? require('../lib-cov/mongodb').native() : require('../lib-cov/mongodb').pure();
var useSSL = process.env['USE_SSL'] != null ? true : false;
var testCase = require('nodeunit').testCase,
@@ -1,4 +1,5 @@
var mongodb = process.env['TEST_NATIVE'] != null ? require('../lib/mongodb').native() : require('../lib/mongodb').pure();
+if(process.env['TEST_COVERAGE']) var mongodb = process.env['TEST_NATIVE'] != null ? require('../lib-cov/mongodb').native() : require('../lib-cov/mongodb').pure();
var useSSL = process.env['USE_SSL'] != null ? true : false;
var testCase = require('nodeunit').testCase,
View
@@ -1,4 +1,5 @@
var mongodb = process.env['TEST_NATIVE'] != null ? require('../lib/mongodb').native() : require('../lib/mongodb').pure();
+if(process.env['TEST_COVERAGE']) var mongodb = process.env['TEST_NATIVE'] != null ? require('../lib-cov/mongodb').native() : require('../lib-cov/mongodb').pure();
var useSSL = process.env['USE_SSL'] != null ? true : false;
var testCase = require('nodeunit').testCase,
View
@@ -1,4 +1,5 @@
var mongodb = process.env['TEST_NATIVE'] != null ? require('../lib/mongodb').native() : require('../lib/mongodb').pure();
+if(process.env['TEST_COVERAGE']) var mongodb = process.env['TEST_NATIVE'] != null ? require('../lib-cov/mongodb').native() : require('../lib-cov/mongodb').pure();
var useSSL = process.env['USE_SSL'] != null ? true : false;
var testCase = require('nodeunit').testCase,
@@ -1,4 +1,5 @@
var mongodb = process.env['TEST_NATIVE'] != null ? require('../../lib/mongodb').native() : require('../../lib/mongodb').pure();
+if(process.env['TEST_COVERAGE']) var mongodb = process.env['TEST_NATIVE'] != null ? require('../../lib-cov/mongodb').native() : require('../../lib-cov/mongodb').pure();
var testCase = require('nodeunit').testCase,
debug = require('util').debug,
@@ -1,4 +1,5 @@
var mongodb = process.env['TEST_NATIVE'] != null ? require('../../lib/mongodb').native() : require('../../lib/mongodb').pure();
+if(process.env['TEST_COVERAGE']) var mongodb = process.env['TEST_NATIVE'] != null ? require('../../lib-cov/mongodb').native() : require('../../lib-cov/mongodb').pure();
var testCase = require('nodeunit').testCase,
debug = require('util').debug,
@@ -1,4 +1,5 @@
var mongodb = process.env['TEST_NATIVE'] != null ? require('../../lib/mongodb').native() : require('../../lib/mongodb').pure();
+if(process.env['TEST_COVERAGE']) var mongodb = process.env['TEST_NATIVE'] != null ? require('../../lib-cov/mongodb').native() : require('../../lib-cov/mongodb').pure();
var testCase = require('nodeunit').testCase,
debug = require('util').debug,
@@ -1,4 +1,5 @@
var mongodb = process.env['TEST_NATIVE'] != null ? require('../../lib/mongodb').native() : require('../../lib/mongodb').pure();
+if(process.env['TEST_COVERAGE']) var mongodb = process.env['TEST_NATIVE'] != null ? require('../../lib-cov/mongodb').native() : require('../../lib-cov/mongodb').pure();
var testCase = require('nodeunit').testCase,
debug = require('util').debug,
@@ -1,4 +1,5 @@
var mongodb = process.env['TEST_NATIVE'] != null ? require('../../lib/mongodb').native() : require('../../lib/mongodb').pure();
+if(process.env['TEST_COVERAGE']) var mongodb = process.env['TEST_NATIVE'] != null ? require('../../lib-cov/mongodb').native() : require('../../lib-cov/mongodb').pure();
var testCase = require('nodeunit').testCase,
fs = require('fs'),
@@ -1,4 +1,5 @@
var mongodb = process.env['TEST_NATIVE'] != null ? require('../../lib/mongodb').native() : require('../../lib/mongodb').pure();
+if(process.env['TEST_COVERAGE']) var mongodb = process.env['TEST_NATIVE'] != null ? require('../../lib-cov/mongodb').native() : require('../../lib-cov/mongodb').pure();
var testCase = require('nodeunit').testCase,
debug = require('util').debug,
View
@@ -1,4 +1,5 @@
var mongodb = process.env['TEST_NATIVE'] != null ? require('../lib/mongodb').native() : require('../lib/mongodb').pure();
+if(process.env['TEST_COVERAGE']) var mongodb = process.env['TEST_NATIVE'] != null ? require('../lib-cov/mongodb').native() : require('../lib-cov/mongodb').pure();
var useSSL = process.env['USE_SSL'] != null ? true : false;
var testCase = require('nodeunit').testCase,
View
@@ -1,4 +1,5 @@
var mongodb = process.env['TEST_NATIVE'] != null ? require('../lib/mongodb').native() : require('../lib/mongodb').pure();
+if(process.env['TEST_COVERAGE']) var mongodb = process.env['TEST_NATIVE'] != null ? require('../lib-cov/mongodb').native() : require('../lib-cov/mongodb').pure();
var useSSL = process.env['USE_SSL'] != null ? true : false;
var testCase = require('nodeunit').testCase,
View
@@ -1,4 +1,5 @@
var mongodb = process.env['TEST_NATIVE'] != null ? require('../lib/mongodb').native() : require('../lib/mongodb').pure();
+if(process.env['TEST_COVERAGE']) var mongodb = process.env['TEST_NATIVE'] != null ? require('../lib-cov/mongodb').native() : require('../lib-cov/mongodb').pure();
var useSSL = process.env['USE_SSL'] != null ? true : false;
var testCase = require('nodeunit').testCase,
View
@@ -1,4 +1,5 @@
var mongodb = process.env['TEST_NATIVE'] != null ? require('../lib/mongodb').native() : require('../lib/mongodb').pure();
+if(process.env['TEST_COVERAGE']) var mongodb = process.env['TEST_NATIVE'] != null ? require('../lib-cov/mongodb').native() : require('../lib-cov/mongodb').pure();
var useSSL = process.env['USE_SSL'] != null ? true : false;
var testCase = require('nodeunit').testCase,
@@ -52,6 +53,7 @@ exports.tearDown = function(callback) {
callback();
}
+if(!process.env['TEST_COVERAGE']) {
/**
* A whole lot of different wayt to execute the group command
*
@@ -76,33 +78,29 @@ exports.shouldCorrectlyExecuteGroupFunction = function(test) {
collection.insert([{'a':2}, {'b':5}, {'a':1}], {safe:true}, function(err, ids) {
// Perform a group count
- collection.group([], {}, {"count":0}, "function (obj, prev) { prev.count++; }"
- , function(err, results) {
+ collection.group([], {}, {"count":0}, "function (obj, prev) { prev.count++; }", function(err, results) {
test.equal(3, results[0].count);
// Pefrom a group count using the eval method
- collection.group([], {}, {"count":0}, "function (obj, prev) { prev.count++; }"
- , false, function(err, results) {
+ collection.group([], {}, {"count":0}, "function (obj, prev) { prev.count++; }", false, function(err, results) {
+ console.dir(err)
test.equal(3, results[0].count);
// Group with a conditional
- collection.group([], {'a':{'$gt':1}}, {"count":0}, "function (obj, prev) { prev.count++; }"
- , function(err, results) {
+ collection.group([], {'a':{'$gt':1}}, {"count":0}, "function (obj, prev) { prev.count++; }", function(err, results) {
// Results
test.equal(1, results[0].count);
// Group with a conditional using the EVAL method
- collection.group([], {'a':{'$gt':1}}, {"count":0}, "function (obj, prev) { prev.count++; }"
- , false, function(err, results) {
+ collection.group([], {'a':{'$gt':1}}, {"count":0}, "function (obj, prev) { prev.count++; }" , false, function(err, results) {
// Results
test.equal(1, results[0].count);
// Insert some more test data
collection.insert([{'a':2}, {'b':3}], {safe:true}, function(err, ids) {
// Do a Group by field a
- collection.group(['a'], {}, {"count":0}, "function (obj, prev) { prev.count++; }"
- , function(err, results) {
+ collection.group(['a'], {}, {"count":0}, "function (obj, prev) { prev.count++; }", function(err, results) {
// Results
test.equal(2, results[0].a);
test.equal(2, results[0].count);
@@ -112,8 +110,7 @@ exports.shouldCorrectlyExecuteGroupFunction = function(test) {
test.equal(1, results[2].count);
// Do a Group by field a
- collection.group({'a':true}, {}, {"count":0}, function (obj, prev) { prev.count++; }
- , true, function(err, results) {
+ collection.group({'a':true}, {}, {"count":0}, function (obj, prev) { prev.count++; }, true, function(err, results) {
// Results
test.equal(2, results[0].a);
test.equal(2, results[0].count);
@@ -129,8 +126,7 @@ exports.shouldCorrectlyExecuteGroupFunction = function(test) {
// Use a function to select the keys used to group by
var keyf = function(doc) { return {a: doc.a}; };
- collection.group(keyf, {a: {$gt: 0}}, {"count": 0, "value": 0}
- , function(obj, prev) { prev.count++; prev.value += obj.a; }, true, function(err, results) {
+ collection.group(keyf, {a: {$gt: 0}}, {"count": 0, "value": 0}, function(obj, prev) { prev.count++; prev.value += obj.a; }, true, function(err, results) {
// Results
results.sort(function(a, b) { return b.count - a.count; });
test.equal(2, results[0].count);
@@ -142,8 +138,7 @@ exports.shouldCorrectlyExecuteGroupFunction = function(test) {
// Use a Code object to select the keys used to group by
var keyf = new Code(function(doc) { return {a: doc.a}; });
- collection.group(keyf, {a: {$gt: 0}}, {"count": 0, "value": 0}
- , function(obj, prev) { prev.count++; prev.value += obj.a; }, true, function(err, results) {
+ collection.group(keyf, {a: {$gt: 0}}, {"count": 0, "value": 0}, function(obj, prev) { prev.count++; prev.value += obj.a; }, true, function(err, results) {
// Results
results.sort(function(a, b) { return b.count - a.count; });
test.equal(2, results[0].count);
@@ -176,6 +171,7 @@ exports.shouldCorrectlyExecuteGroupFunction = function(test) {
});
});
}
+}
/**
* @ignore
View
@@ -1,4 +1,5 @@
var mongodb = process.env['TEST_NATIVE'] != null ? require('../lib/mongodb').native() : require('../lib/mongodb').pure();
+if(process.env['TEST_COVERAGE']) var mongodb = process.env['TEST_NATIVE'] != null ? require('../lib-cov/mongodb').native() : require('../lib-cov/mongodb').pure();
var useSSL = process.env['USE_SSL'] != null ? true : false;
var testCase = require('nodeunit').testCase,
@@ -1,4 +1,5 @@
var mongodb = process.env['TEST_NATIVE'] != null ? require('../lib/mongodb').native() : require('../lib/mongodb').pure();
+if(process.env['TEST_COVERAGE']) var mongodb = process.env['TEST_NATIVE'] != null ? require('../lib-cov/mongodb').native() : require('../lib-cov/mongodb').pure();
var useSSL = process.env['USE_SSL'] != null ? true : false;
var testCase = require('nodeunit').testCase,
View
@@ -1,4 +1,5 @@
var mongodb = process.env['TEST_NATIVE'] != null ? require('../lib/mongodb').native() : require('../lib/mongodb').pure();
+if(process.env['TEST_COVERAGE']) var mongodb = process.env['TEST_NATIVE'] != null ? require('../lib-cov/mongodb').native() : require('../lib-cov/mongodb').pure();
var useSSL = process.env['USE_SSL'] != null ? true : false;
var testCase = require('nodeunit').testCase,
View
@@ -1,4 +1,5 @@
var mongodb = process.env['TEST_NATIVE'] != null ? require('../lib/mongodb').native() : require('../lib/mongodb').pure();
+if(process.env['TEST_COVERAGE']) var mongodb = process.env['TEST_NATIVE'] != null ? require('../lib-cov/mongodb').native() : require('../lib-cov/mongodb').pure();
var useSSL = process.env['USE_SSL'] != null ? true : false;
var testCase = require('nodeunit').testCase,
View
@@ -1,4 +1,5 @@
var mongodb = process.env['TEST_NATIVE'] != null ? require('../lib/mongodb').native() : require('../lib/mongodb').pure();
+if(process.env['TEST_COVERAGE']) var mongodb = process.env['TEST_NATIVE'] != null ? require('../lib-cov/mongodb').native() : require('../lib-cov/mongodb').pure();
var useSSL = process.env['USE_SSL'] != null ? true : false;
var testCase = require('nodeunit').testCase,
Oops, something went wrong.

0 comments on commit b874a0c

Please sign in to comment.