https://github.com/piecioshka/cheat-code-coverage
How to cheat code coverage calculations?
https://github.com/piecioshka/cheat-code-coverage
cheat code-coverage unit-testing
Last synced: 15 days ago
JSON representation
How to cheat code coverage calculations?
- Host: GitHub
- URL: https://github.com/piecioshka/cheat-code-coverage
- Owner: piecioshka
- Created: 2019-05-15T20:18:18.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2026-06-09T12:15:22.000Z (23 days ago)
- Last Synced: 2026-06-09T14:11:03.605Z (23 days ago)
- Topics: cheat, code-coverage, unit-testing
- Language: JavaScript
- Homepage:
- Size: 119 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cheat-code-coverage
How to cheat code coverage calculations?
## Answer
Choose strategy:
* **typical**:
```bash
npm run test:typical
npm run coverage:typical
```
* **cheat**, which try to execute all members in `try..catch` block:
```bash
npm run test:cheat
npm run coverage:cheat
```
Result **is the same** in both strategies :warning:
## License
[The MIT License](http://piecioshka.mit-license.org) @ 2019