Skip to content

Commit

Permalink
Add coverage badge and speed up tests on Travis
Browse files Browse the repository at this point in the history
Add code coverage badge to signal code quality.
Limit the max workers to speed up tests on Travis.

See: https://goo.gl/UNQeeQ
  • Loading branch information
maoberlehner committed Dec 1, 2017
1 parent 6394b59 commit c3c870d
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ node_js:
script:
- npm run build
- npm run lint
- npm test
- npm test -- --maxWorkers=4
- npm run coveralls
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# css-node-extract
[![Build Status](https://travis-ci.org/maoberlehner/css-node-extract.svg?branch=master)](https://travis-ci.org/maoberlehner/css-node-extract)
[![Coverage Status](https://coveralls.io/repos/github/maoberlehner/css-node-extract/badge.svg?branch=master)](https://coveralls.io/github/maoberlehner/css-node-extract?branch=master)
[![GitHub stars](https://img.shields.io/github/stars/maoberlehner/css-node-extract.svg?style=social&label=Star)](https://github.com/maoberlehner/css-node-extract)

Extract certain nodes from CSS code.
Expand Down
33 changes: 33 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
"watch": "npm run clean && tsc -w",
"clean": "rimraf dist",
"lint": "tslint src/**/*.ts",
"coverage": "jest --coverage --maxWorkers=4",
"coveralls": "npm run coverage && cat coverage/lcov.info | coveralls",
"test": "jest",
"coverage": "jest --coverage",
"prepublishOnly": "npm run build"
},
"repository": {
Expand All @@ -30,6 +31,7 @@
},
"devDependencies": {
"@types/jest": "^21.1.6",
"coveralls": "^3.0.0",
"jest": "^21.2.1",
"postcss-less": "^1.1.3",
"postcss-scss": "^1.0.2",
Expand Down

0 comments on commit c3c870d

Please sign in to comment.