Skip to content

Commit

Permalink
Added code coverage badges.
Browse files Browse the repository at this point in the history
  • Loading branch information
vinicioslc committed Jan 7, 2020
1 parent b66f263 commit ff9ffe6
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 17 deletions.
1 change: 1 addition & 0 deletions .badges/badge-branches.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .badges/badge-functions.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .badges/badge-lines.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .badges/badge-statements.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,10 @@ An simple adb extesion that makes possible to connect to an device over wifi con
- [ ] unit tests in everywhere 100% Code Coverage currently 76.8%
- [ ] more easy architecture and easy to extend features
- [ ] clean arquitecture for every module

### Library Jest Health Summary

![coverage-branches](./.badges/badge-branches.svg)
![coverage-function](./.badges/badge-functions.svg)
![coverage-lines](./.badges/badge-lines.svg)
![coverage-statements](./.badges/badge-statements.svg)
21 changes: 10 additions & 11 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
module.exports = {
"roots": [
"<rootDir>/src"
],
testMatch: [
"**/__tests__/**/*.+(ts|tsx|js)",
"**/?(*.)+(spec|test).+(ts|tsx|js)"
],
"transform": {
"^.+\\.(ts|tsx)$": "ts-jest"
},
}
coverageReporters: ['json', 'json-summary', 'lcov', 'text', 'text-summary'],
roots: ['<rootDir>/src'],
testMatch: [
'**/__tests__/**/*.+(ts|tsx|js)',
'**/?(*.)+(spec|test).+(ts|tsx|js)'
],
transform: {
'^.+\\.(ts|tsx)$': 'ts-jest'
}
}
9 changes: 9 additions & 0 deletions package-lock.json

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

14 changes: 8 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,21 +66,23 @@
"watch": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"pubm": "vsce publish minor",
"test": "npx jest --coverage",
"test-watch": "npx jest --watchAll"
"test": "jest --coverage --passWithNoTests",
"test-watch": "npx jest --watchAll",
"test:make-badges": "npm run test && jest-badge-generator "
},
"dependencies": {
"diff": ">=3.5.0",
"lanscanner": "0.0.5"
},
"devDependencies": {
"@types/jest": "^24.0.23",
"@types/node": "^8.10.59",
"diff": ">=3.5.0",
"jest": "^24.9.0",
"jest-badge-generator": "^1.0.3",
"ts-jest": "^24.2.0",
"tslint": "^5.20.1",
"typescript": "^3.7.3",
"vscode": "^1.1.36"
},
"dependencies": {
"diff": ">=3.5.0",
"lanscanner": "0.0.5"
}
}

0 comments on commit ff9ffe6

Please sign in to comment.