← Back to context

Comment by firesteelrain

14 days ago

Unit tests as a form of example code based documentation is where I could see unit tests complimenting documentation, yes.

However, depending on the industry, code coverage is a valuable tool to gauge the maturity of the software baseline and burning down software execution risk. One example of this is Airworthiness or Safety Critical Code.

Of course, there is no single code coverage metric. Code covered by unit tests does not count towards code covered by integration tests. They are completely separate systems. And, at least in Beck's opinion, should be carried out by completely different teams.