Skip to content

Commit 1ad3452

Browse files
committed
cleaner test scripts
1 parent b1d6a5e commit 1ad3452

2 files changed

Lines changed: 8 additions & 9 deletions

File tree

.travis.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,13 @@ language: node_js
33
node_js:
44
- iojs
55
- 0.10
6-
- 0.11
76
- 0.12
87

9-
script: npm run travis
10-
118
before_install:
129
- sudo apt-get update -qq
1310
- sudo apt-get install -qq --yes python3 php5-curl php5-cli
1411

1512
after_script:
16-
- npm run coverage
1713
- npm run codeclimate
1814

1915
notifications:

package.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,20 +46,23 @@
4646
"url": "https://github.com/Mashape/httpsnippet/issues"
4747
},
4848
"scripts": {
49-
"test": "standard && echint && mocha --no-timeouts --reporter spec --fgrep 'Request Validation' --invert",
50-
"travis": "standard && mocha --no-timeouts --reporter spec",
51-
"coverage": "istanbul cover ./node_modules/mocha/bin/_mocha -- --fgrep 'Request Validation' --invert",
49+
"quick": "mocha --no-timeouts --fgrep 'Request Validation' --invert",
50+
"pretest": "standard && echint",
51+
"test": "mocha --no-timeouts",
52+
"posttest": "npm run coverage",
53+
"coverage": "istanbul cover --dir coverage _mocha -- --fgrep 'Request Validation' --invert -R dot",
5254
"codeclimate": "codeclimate < coverage/lcov.info"
5355
},
5456
"standard": {
5557
"ignore": [
5658
"**/test/fixtures/**"
5759
]
5860
},
59-
"echint": {
61+
"echint": {
6062
"ignore": [
63+
"coverage/**",
6164
"CONTRIBUTING.md",
62-
"**/test/fixtures/**"
65+
"test/fixtures/**"
6366
]
6467
},
6568
"devDependencies": {

0 commit comments

Comments
 (0)