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++
