文件名称:How+to+Use+Ceedling+for+Embedded+Test-Driven+Development.pdf
文件大小:377KB
文件格式:PDF
更新时间:2023-03-29 06:56:05
TDD Embedded Unit Te Ceedling
Welcome Maybe you've heard of Test-Driven Development (TDD), and maybe you've even thought it seemed like a reasonable idea. If you haven't tried TDD yet though, you really should. This guide contains step-by-step examples to get you started test driving in C, especially for embedded software applications. We'll look at how to use the unit test framework called Ceedling to help us do this. In the first example, we'll see how to create tests and write the code to make them pass. In the second example we look at mocking, and learn how to use it simulate our hardware. All the tests in these examples compile and run on your host PC (with GCC), with no target hardware needed.