diff --git a/.gitignore b/.gitignore index 144cfe268a..a8ea9cb1eb 100644 --- a/.gitignore +++ b/.gitignore @@ -47,4 +47,7 @@ pidfile ## Transifex tx.exe -.transifexrc \ No newline at end of file +.transifexrc + +##Coverage output +coverage \ No newline at end of file diff --git a/package.json b/package.json index 53958971bd..151660ddf2 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "main": "app.js", "scripts": { "start": "node loader.js", - "test": "mocha ./tests -t 10000" + "test": "./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- ./tests -t 10000" }, "dependencies": { "async": "~1.5.0", @@ -44,10 +44,9 @@ "mongodb": "~2.1.3", "morgan": "^1.3.2", "nconf": "~0.8.2", - "nodebb-plugin-composer-default": "3.0.19", + "nodebb-plugin-composer-default": "3.0.18", "nodebb-plugin-dbsearch": "1.0.1", - "nodebb-plugin-emoji-apple": "1.0.3", - "nodebb-plugin-emoji-extended": "1.0.5", + "nodebb-plugin-emoji-extended": "1.0.3", "nodebb-plugin-markdown": "5.0.1", "nodebb-plugin-mentions": "1.0.21", "nodebb-plugin-soundpack-default": "0.1.6", @@ -86,9 +85,10 @@ "xregexp": "~3.1.0" }, "devDependencies": { - "mocha": "~1.13.0", "grunt": "~0.4.5", - "grunt-contrib-watch": "^1.0.0" + "grunt-contrib-watch": "^1.0.0", + "istanbul": "^0.4.2", + "mocha": "~1.13.0" }, "bugs": { "url": "https://github.com/NodeBB/NodeBB/issues" diff --git a/tests/mocks/databasemock.js b/tests/mocks/databasemock.js index a895d25c8a..06b3790a65 100644 --- a/tests/mocks/databasemock.js +++ b/tests/mocks/databasemock.js @@ -36,14 +36,14 @@ ' "host": "127.0.0.1",' + '\n' + ' "port": "6379",' + '\n' + ' "password": "",' + '\n' + - ' "database": "1"' + '\n' + + ' "database": "redis"' + '\n' + '}\n'+ ' or (mongo):\n' + '"test_database": {' + '\n' + ' "host": "127.0.0.1",' + '\n' + ' "port": "27017",' + '\n' + ' "password": "",' + '\n' + - ' "database": "1"' + '\n' + + ' "database": "mongo"' + '\n' + '}\n'+ ' or (mongo) in a replicaset' + '\n' + '"test_database": {' + '\n' +