Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate test code coverage reporting with Codecov and Travis. #19

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
/package-lock.json
/tmp
node_modules
/coverage
18 changes: 18 additions & 0 deletions .nycrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"extends": "@istanbuljs/nyc-config-typescript",
"include": [
"src"
],
"require": [
"ts-node/register"
],
"cache": false,
"sourceMap": true,
"all": true,
"instrument": true,
"reporter": [
"lcov",
"text",
"text-summary"
]
}
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ before_script:
- yarn build

script:
- yarn test
- yarn test:coverage
- yarn codecov
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Command line utility to synchronize and version control relational database obje
[![Version](https://img.shields.io/npm/v/@leapfrogtechnology/sync-db.svg?style=flat-square)](https://npmjs.org/package/@leapfrogtechnology/sync-db)
[![Travis](https://img.shields.io/travis/com/leapfrogtechnology/sync-db.svg?style=flat-square)](https://travis-ci.com/leapfrogtechnology/sync-db)
[![Language grade: TypeScript](https://img.shields.io/lgtm/grade/javascript/g/laudio/sync-db.svg?style=flat-square&logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/laudio/sync-db/context:javascript)
[![Codecov](https://img.shields.io/codecov/c/github/leapfrogtechnology/sync-db?style=flat-square)](https://codecov.io/gh/leapfrogtechnology/sync-db)
[![LICENSE](https://img.shields.io/github/license/leapfrogtechnology/sync-db.svg?style=flat-square)](https://github.com/leapfrogtechnology/sync-db/blob/master/LICENSE)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](https://github.com/leapfrogtechnology/sync-db#contributing)

Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,16 @@
"scripts": {
"posttest": "tslint -p test -t stylish",
"build": "rm -rf lib && tsc -b",
"codecov": "codecov",
"prepack": "yarn build",
"test": "nyc --extension .ts mocha --forbid-only \"test/**/*.test.ts\"",
"test:coverage": "nyc mocha --forbid-only \"test/**/*.test.ts\"",
"watch": "tsc --watch",
"changelog": "./release.sh changelog",
"release": "./release.sh bump"
},
"dependencies": {
"@istanbuljs/nyc-config-typescript": "^0.1.3",
"@oclif/command": "^1",
"@oclif/config": "^1",
"@oclif/plugin-help": "^2",
Expand All @@ -60,8 +63,9 @@
"@types/ramda": "^0.26.12",
"@types/yamljs": "^0.2.30",
"chai": "^4",
"codecov": "^3.5.0",
"mocha": "^5",
"nyc": "^13",
"nyc": "^14.1.1",
"ts-node": "^8",
"tslint": "^5",
"tslint-config-leapfrog": "^1.0.3",
Expand Down
Loading