diff --git a/seasoned_api/conf/test.json b/seasoned_api/conf/test.json new file mode 100644 index 0000000..cc7b8fc --- /dev/null +++ b/seasoned_api/conf/test.json @@ -0,0 +1,17 @@ +{ + "database": { + "host": ":memory:" + }, + "webserver": { + "port": 31400 + }, + "tmdb": { + "apiKey": "bogus-api-key" + }, + "raven": { + "DSN": "" + }, + "authentication": { + "secret": "secret" + } +} diff --git a/seasoned_api/package.json b/seasoned_api/package.json index 383fea4..a56b4db 100644 --- a/seasoned_api/package.json +++ b/seasoned_api/package.json @@ -3,16 +3,19 @@ "main": "webserver/server.js", "scripts": { "start": "cross-env SEASONED_CONFIG=conf/development.json NODE_PATH=. node src/webserver/server.js", - "test": "cross-env SEASONED_CONFIG=conf/development.json TESTING=true NODE_PATH=. mocha --recursive test/system", + "test": "cross-env SEASONED_CONFIG=conf/test.json NODE_PATH=. mocha --recursive test", "coverage": "cross-env SEASONED_CONFIG=conf/test.json NODE_PATH=. istanbul cover -x script/autogenerate-documentation.js --include-all-sources --dir test/.coverage node_modules/mocha/bin/_mocha --recursive test/**/* -- --report lcovonly && cat test/.coverage/lcov.info | coveralls && rm -rf test/.coverage", "lint": "./node_modules/.bin/eslint src/" }, "dependencies": { "bcrypt-nodejs": "^0.0.3", + "blanket": "^1.2.3", "body-parser": "~1.0.1", + "codecov": "^3.0.0", "cross-env": "^3.1.3", "express": "~4.11.0", "jsonwebtoken": "^8.0.1", + "mocha-lcov-reporter": "^1.3.0", "mongoose": "^3.6.13", "moviedb": "^0.2.10", "node-cache": "^4.1.1", @@ -28,7 +31,7 @@ "eslint-config-airbnb-base": "^12.1.0", "eslint-plugin-import": "^2.8.0", "istanbul": "^0.4.5", - "mocha": "^3.1.0", + "mocha": "^5.0.4", "supertest": "^2.0.1", "supertest-as-promised": "^4.0.1" }