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

Commit 753e288

Browse files
authored
Merge pull request #78 from skellock/coveralls
Adds coveralls
2 parents 1465a40 + 2c961ab commit 753e288

File tree

4 files changed

+202
-3
lines changed

4 files changed

+202
-3
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[![Build Status](https://semaphoreci.com/api/v1/infinite-steve/electron-starter/branches/master/shields_badge.svg)](https://semaphoreci.com/infinite-steve/electron-starter)
2+
[![Coverage Status](https://coveralls.io/repos/github/skellock/electron-starter/badge.svg?branch=master)](https://coveralls.io/github/skellock/electron-starter?branch=master)
23

34
# electron-starter
45

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[![Build Status](https://semaphoreci.com/api/v1/infinite-steve/electron-starter/branches/master/shields_badge.svg)](https://semaphoreci.com/infinite-steve/electron-starter)
2-
2+
[![Coverage Status](https://coveralls.io/repos/github/skellock/electron-starter/badge.svg?branch=master)](https://coveralls.io/github/skellock/electron-starter?branch=master)
33

44
# electron-starter
55

package-lock.json

Lines changed: 195 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
"@types/storybook__react": "3.0.3",
6262
"ava": "0.21.0",
6363
"babel-preset-react": "6.24.1",
64+
"coveralls": "^2.13.1",
6465
"electron": "1.7.5",
6566
"electron-builder": "19.19.1",
6667
"fuse-box": "2.2.2-beta.12",
@@ -101,7 +102,9 @@
101102
"check:test": "tsc -p tsconfig.test.json --noEmit --pretty",
102103
"clean": "rm -rf .fusebox out dist out-test",
103104
"compile": "NODE_ENV=production ts-node fuse",
104-
"coverage": "npm-run-all test:clean test:compile && nyc --reporter=lcov --reporter=html --reporter=text ava",
105+
"coverage:upload": "cat ./coverage/lcov.info | coveralls",
106+
"coverage:report": "nyc --reporter=lcov --reporter=html --reporter=text ava",
107+
"coverage": "npm-run-all test:clean test:compile coverage:report",
105108
"dist": "electron-builder --mac --win --linux --ia32 --x64",
106109
"draft": "electron-builder -p always --draft --mac --win --linux --ia32 --x64",
107110
"info": "npm-scripts-info",
@@ -116,7 +119,7 @@
116119
"test": "npm-run-all test:clean test:compile test:unit",
117120
"test:clean": "rm -rf out-test",
118121
"test:compile": "tsc -p tsconfig.test.json",
119-
"test:unit": "ava out-test/**/*.test.js",
122+
"test:unit": "ava",
120123
"watch:compile": "npm run test:compile -- -w",
121124
"watch:tests": "npm run test:unit -- --watch"
122125
},

0 commit comments

Comments
 (0)