5 ms·
My tests run during tests, so they automatically have 100% test coverage. :D
by mLuby 7y ago
My tests run during tests, so they automatically have 100% test coverage. :D
- plorkyeran 7y agoIt's not all that uncommon to have test code which is never actually run. Usually just because of disabled tests or leftover helper functions that are no longer used, but sometimes due to bugs in the tests themselves. Turning on code coverage tracking for the test code itself can sometimes reveal some interesting things.
- DonHopkins 7y agoAlways write recursive code. It tests itself!