sveri@lemmy.sveri.detoProgramming@programming.dev•100% code coverage is near-meaningless - but is there a good measure to use?English
2·
1 year agoAdditionally I like roundtrip tests.
For example we have two data formats and support conversion between both of them.
So I have tests that convert from A to B and back to A. Then I can go and call assertEquals on them.
It’s a very cheap test, that tests all functionality of the conversion itself.
Two things.
But yea, number 1 is the most important thing, no job is worth having pain for the rest of your life.