Chapter 7. Generating unit tests
7.1 | The big picture |
7.2 | Preparing for common concerns |
7.3 | A case study: augmented C code |
7.4 | Technique: the ordered test generator |
7.5 | Technique: the test data generator |
7.6 | Technique: the test robot generator |
7.7 | Finding a tool to do it for you |
7.8 | Design tips |
7.9 | Summary |
There is nothing like the feeling of editing your code with confidence. And that kind of confidence can only come from knowing you have tests that check every aspect of the code for defects. Unit tests are invaluable for performing this role and ensuring overall code quality. They run against an API, which ...
Get Code Generation in Action 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.