Skip to content

Instantly share code, notes, and snippets.

@trikitrok
Created December 20, 2016 08:37
Show Gist options
  • Save trikitrok/840436ea8bf0b2bb7f722f16a45ab54d to your computer and use it in GitHub Desktop.
Save trikitrok/840436ea8bf0b2bb7f722f16a45ab54d to your computer and use it in GitHub Desktop.
Resources for embedded C testing and TDD

Tools

throwtheswitch libraries: Unity, Cmock, Ceedling, etc http://www.throwtheswitch.org/

UNITY, Unit Testing for C (especially Embedded Software) http://www.throwtheswitch.org/unity/

CMock, Automated Mock & Stub Generation For C http://www.throwtheswitch.org/cmock/

Ceedling, build system for C projects http://www.throwtheswitch.org/ceedling

Books

Books for learning Unit Testing (in particular Test-Driven Development) for Embedded Development in C. http://www.throwtheswitch.org/books

Test-Driven Development for Embedded C, James W. Grenning https://pragprog.com/book/jgade/test-driven-development-for-embedded-c

Embedded Testing with Unity and CMock, Mark VanderVoord http://www.lulu.com/shop/mark-vandervoord/embedded-testing-with-unity-and-cmock/paperback/product-14408590.html

Tutorials

Unit-testing (embedded) C applications with Ceedling https://dmitryfrank.com/articles/unit_testing_embedded_c_applications

Modern unit testing in C with TDD and Ceedling http://www.embedded.com/design/programming-languages-and-tools/4442825/2/Modern-unit-testing-in-C-with-TDD-and-Ceedling

Mocking Embedded Hardware Interfaces with Ceedling and CMock http://www.electronvector.com/blog/mocking-embedded-hardware-interfaces-with-ceedling-and-cmock

Try Embedded Test-Driven Development Right Now with Ceedling http://www.electronvector.com/blog/try-embedded-test-driven-development-right-now-with-ceedling

The mock object approach to test-driven development http://www.embedded.com/design/prototyping-and-development/4398723/The-mock-object-approach-to-test-driven-development

Talks

Patterns and Practices for Embedded TDD in C and C++, Byran Wills-Heath https://vimeo.com/131644349

@Sreekanth-mk
Copy link

Awesome.... Thanks for sharing...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment