Skip to content

Commit cef4e71

Browse files
committed
fix(Test): Changed testing method and allowed for tests in every branch
1 parent 8d6ccff commit cef4e71

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
/node_modules
2-
.nyc_output
2+
.nyc_output
3+
coverage
4+
*.lcov

.npmignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,4 @@ typings/
6262
src/
6363
docs/
6464
test/
65-
.nyc_output
65+
*.lcov

.travis.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,9 @@ install:
1414

1515
jobs:
1616
include:
17-
- stage: "Coverage"
18-
script:
19-
- npm install
20-
- istanbul cover ./node_modules/mocha/bin/_mocha --reporter test -- -R spec
21-
- codecov
17+
- stage: "Install"
18+
script: npm install
2219
- stage: "Testing"
2320
script: npm test
24-
if: branch = master
21+
- stage: "Coverage"
22+
script: npm run report-coverage

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"scripts": {
1111
"test": "nyc mocha",
1212
"build": "standard 'src/**/*.js' --fix && babel src -d dist",
13-
"start": "node index.js"
13+
"start": "node index.js",
14+
"report-coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov"
1415
},
1516
"repository": {
1617
"type": "git",

0 commit comments

Comments
 (0)