Skip to content

Commit dbcbf60

Browse files
committed
Merge pull request #807 from ParsePlatform/flovilmart.fasterTests
Adds optional coverage for faster tests
2 parents 3b4faaa + 0e39b3b commit dbcbf60

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ language: node_js
55
node_js:
66
- "4.3"
77
env:
8-
- MONGODB_VERSION=2.6.11
9-
- MONGODB_VERSION=3.0.8
8+
global:
9+
- CODE_COVERAGE=1
10+
matrix:
11+
- MONGODB_VERSION=2.6.11
12+
- MONGODB_VERSION=3.0.8
1013
cache:
1114
directories:
1215
- $HOME/.mongodb/versions/downloads

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"dev": "npm run build && bin/dev",
5757
"build": "./node_modules/.bin/babel src/ -d lib/",
5858
"pretest": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=3.0.8} ./node_modules/.bin/mongodb-runner start",
59-
"test": "cross-env NODE_ENV=test TESTING=1 ./node_modules/.bin/babel-node ./node_modules/babel-istanbul/lib/cli.js cover -x **/spec/** ./node_modules/jasmine/bin/jasmine.js",
59+
"test": "cross-env NODE_ENV=test TESTING=1 ./node_modules/.bin/babel-node $([[ $CODE_COVERAGE == 1 ]] && echo './node_modules/babel-istanbul/lib/cli.js cover -x **/spec/**') ./node_modules/jasmine/bin/jasmine.js",
6060
"posttest": "mongodb-runner stop",
6161
"start": "./bin/parse-server",
6262
"prepublish": "npm run build"

0 commit comments

Comments
 (0)