Skip to content
This repository was archived by the owner on Jun 27, 2019. It is now read-only.

Commit 4c9233b

Browse files
improving testing and output
1 parent a93c1b0 commit 4c9233b

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- yarn install --frozen-lockfile --non-interactive
2424
- yarn add codacy-coverage
2525
- yarn global add nyc
26-
- yarn test:coverage --silent
26+
- yarn test:coverage
2727
- cat ./coverage/lcov.info | codacy-coverage
2828

2929
after_success:

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,22 @@
3535
"scripts": {
3636
"clear": "rm -Rf tmp",
3737
"test": "npm run eslint && cross-env NODE_ENV=test nyc --reporter=text-summary npm run mocha",
38+
"test:mongo": "npm run eslint && cross-env NODE_ENV=test nyc --reporter=text-summary npm run mocha:mongo",
3839
"test:coverage": "npm run eslint && cross-env NODE_ENV=test nyc --reporter=lcovonly --reporter=text-summary npm run mocha",
3940
"eslint": "eslint server/. test/. --config .eslintrc.json",
4041
"start": "concurrently 'mongod' 'wait-on tcp:27017 && cross-env NODE_ENV=production node server/'",
4142
"start:win": "concurrently \"mongod\" \"wait-on tcp:27017 &&SET NODE_ENV=production&& node server/\"",
42-
"dev:debug": "npm run clear && concurrently '$npm_package_config_mongoDev' 'wait-on tcp:27017 && cross-env DEBUG=feathers && cross-env NODE_ENV=development nodemon --inspect server/'",
43-
"dev": "npm run clear && concurrently '$npm_package_config_mongoDev' 'wait-on tcp:27017 && cross-env DEBUG=feathers && cross-env NODE_ENV=development nodemon server/'",
43+
"dev:debug": "npm run clear && concurrently '$npm_package_config_mongoDev &>/dev/null' 'wait-on tcp:27017 && cross-env DEBUG=feathers && cross-env NODE_ENV=development nodemon --inspect server/'",
44+
"dev": "npm run clear && concurrently '$npm_package_config_mongoDev &>/dev/null' 'wait-on tcp:27017 && cross-env DEBUG=feathers && cross-env NODE_ENV=development nodemon server/'",
4445
"dev:local": "sh scripts/run-local.sh",
4546
"dev:noseed": "concurrently 'mongod --dbpath data' 'wait-on tcp:27017 && NODE_ENV=development DEBUG=feathers nodemon server/'",
4647
"dev:win": "npm run clear && concurrently \"mongod --dbpath /data/db\" \"wait-on tcp:27017&&cross-env NODE_ENV=development&&cross-env DEBUG=feathers&& nodemon --inspect server/\"",
47-
"mocha": "npm run clear && $npm_package_config_concurrently '$npm_package_config_mongoDev &>/dev/null' 'wait-on tcp:27017 && NODE_ENV=test $npm_package_config_mocha'"
48+
"mocha": "npm run clear && $npm_package_config_mocha",
49+
"mocha:mongo": "$npm_package_config_concurrently '$npm_package_config_mongoDev &>/dev/null' 'wait-on tcp:27017 && npm run mocha'"
4850
},
4951
"config": {
5052
"mongoDev": "mongod --dbpath data --quiet",
51-
"mocha": "node_modules/mocha/bin/_mocha test/ --recursive --timeout 10000 --exit",
53+
"mocha": "cross-env NODE_ENV=test node_modules/mocha/bin/_mocha test/ --recursive --timeout 10000 --exit",
5254
"concurrently": "concurrently --kill-others --success first"
5355
},
5456
"dependencies": {

0 commit comments

Comments
 (0)