Unit test coverage #29
Replies: 1 comment 2 replies
-
Great question! Boy do I have opinions 😆 (high value) tests are a huge asset to an open source project. But I think we should also be pragmatic - don't target a magical code coverage number - test what needs to be tested. Here's my reasoning I've worked on projects that have taken it too far, and those who haven't taken it far enough. I think automated testing provides a few values (in order according to my opinion):
But tests can also be a liability:
So, I think we should encourage testing (especially as we really want community contribution)! But we also shouldn't go overboard by requiring code coverage percentages, or using complex mocking frameworks that are more complex than the code under test :) |
Beta Was this translation helpful? Give feedback.
-
I'm reworking at the moment some things of @Thom-de-Jong 's object pool reading and writing implementation. Also I already integrated some unit tests. Right now I'm asking myself how much test coverage we want to achieve or if we prefer to focus on a fast progressing library?
Testing all the ISO11783-6 objects for reading and writing takes a lot of time, so I asked myself what our general implementation strategy is.
@GwnDaan
@Notgnoshi
@Thom-de-Jong
@ad3154
Beta Was this translation helpful? Give feedback.
All reactions