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

Commit 6f2f8ab

Browse files
author
Michal Vlasák
committed
Add coveralls integration
1 parent 20ca266 commit 6f2f8ab

3 files changed

Lines changed: 10 additions & 1 deletion

File tree

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,6 @@ node_js:
88
script:
99
- npm run lint
1010
- npm run build
11-
- npm run test
11+
- npm run test
12+
- npm run test:coverage
13+
- npm run test:coveralls

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
[![Npm](https://img.shields.io/npm/v/cosmas.svg?style=flat-square)](https://www.npmjs.com/package/cosmas)
44
[![License](https://img.shields.io/github/license/AckeeCZ/cosmas.svg?style=flat-square)](https://github.com/AckeeCZ/cosmas/blob/master/LICENSE)
5+
[![Dependencies](https://img.shields.io/david/AckeeCZ/cosmas.svg?style=flat-square)](https://david-dm.org/AckeeCZ/cosmas)
6+
[![Dev dependencies](https://img.shields.io/david/dev/AckeeCZ/cosmas.svg?style=flat-square)](https://david-dm.org/AckeeCZ/cosmas)
7+
[![Downloads](https://img.shields.io/npm/dw/cosmas.svg?style=flat-square)](https://www.npmjs.com/package/cosmas)
8+
[![Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
59

610
Simple pino-based logger for all your writing needs
711

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
"lint-staged": "lint-staged",
99
"test": "NODE_ENV= jest",
1010
"test-watch": "NODE_ENV= jest --watch",
11+
"test:coverage": "npm run test -- --collectCoverage",
12+
"test:coveralls": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
1113
"lint": "tslint -p . --force --format codeFrame; exit 0",
1214
"pretty": "prettier --parser typescript --write 'src/*.ts'",
1315
"precommit": "lint-staged && npm test",
@@ -52,6 +54,7 @@
5254
"@types/node": "^10.12.0",
5355
"@types/on-finished": "^2.3.1",
5456
"@types/on-headers": "^1.0.0",
57+
"coveralls": "^3.0.2",
5558
"express": "^4.16.3",
5659
"husky": "^0.14.3",
5760
"jest": "^23.6.0",

0 commit comments

Comments
 (0)