An open API service indexing awesome lists of open source software.

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?

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