Chapter 11

Test Driven Development

Abstract

This chapter examines a development technique called Test Driven Development (TDD). TDD makes generating software test cases part of the development cycle. More specifically it forces you to write the test cases before writing the application code. This is an alien process for most embedded developers but once you gain familiarity with TDD it has the potential to increase both productivity and code reliability. The practical exercises look at using the “Unity” developer test framework and how to most effectively setup the IDE for automated build and test. The chapter also considers some of the special cases for testing on a small embedded system.

Keywords

Test Driven Development; Unity; CppUtest; Instrumentation ...

Get The Designer's Guide to the Cortex-M Processor Family, 2nd Edition 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.