|
|
|
|
|
by badmintonbaseba
601 days ago
|
|
I wouldn't count the coverage of integration tests with the same weight as coverage from unit tests. Unit tests often cover the same line multiple times meaningfully, as it's much easier to exhaust corner case inputs of a single unit in isolation than in an integration test. Think about a line that does a regex match. You can get 100% line coverage on that line with a single happy path test, or 100% branch coverage with two tests. You probably want to test a regex with a few more cases than that. It can be straightforward from a unit test, but near impossible from an integration test. Also integration tests inherently exercise a lot of code, then only assert on a few high level results. This also inflates coverage compared to unit tests. |
|