http://product.china-pub.com/199003
测试驱动的嵌入式C语言开发 Test Driven Development for Embedded C
《测试驱动的嵌入式c语言开发》深入介绍如何把测试驱动的开发方法应用于嵌入式c语言开发,第一部分介绍了两个开源的测试框架,通过测试驱动开发方法开发第一个模块;第二部分深入介绍了与系统中其他模块进行交互的代码的测试技术,如测试替身、仿制对象等;第三部分介绍了设计与持续改进代码,如写出更好代码的一些重要原则,建立可测并灵活设计的高级技术,改进已有代码的实践方法—重构技术,改进遗留代码,以及编写和维护测试的指导原则。本书的代码几乎全部用c写成,并且可以用于嵌入式的、受约束的开发和执行环境。
http://pragprog.com/book/lotdd/modern-c-programming-with-test-driven-development
Modern C++ Programming with Test-Driven Development: Code Better, Sleep Better by Jeff Langr
In this book, you’ll learn how to use TDD to improve legacy C++ systems
- how to identify and deal with troublesome system dependencies
- how to do dependency injection, which is particularly tricky in C++
- how to use testing tools for C++ that aid TDD
- new C++11 features that facilitate TDD
第2本是新出的书,对c++的TDD进行了非常详尽的描述
几个常见的单元测试框架[C/C++]
https://code.google.com/p/googletest Google Test/Google Mock
http://www.boost.org/doc/libs/1_53_0/libs/test/doc/html/index.html Boost.Test
http://cppunit.sourceforge.net/doc/1.11.6/cppunit_cookbook.html CppUnit
http://c2.com/cgi/wiki?CppUnitLite CppUnitLite
http://cute-test.com/ CUTE
http://cxxtest.com/ CxxTest
http://unitpp.sourceforge.net/ Unit++