Learning Tests for Third-Party Code
What should a test-driven developer do about tests for third-party code? We should expect that the third-party code is tested, so in general it’s not our responsibility to write tests for third-party code.[43] Even though testing the vendor’s code is not our responsibility, it does not mean that writing some tests won’t help us. Let’s talk about the role of tests in an environment where we use off-the-shelf code.
You have an intended use for the third-party code. You could start by integrating it immediately into your application. I recommend against this course because it mixes learning the third-party code with applying the learning in your code.
You must learn the code anyway, so why not learn it ...
Get Test Driven Development for Embedded C now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.