Skip to content
HomeVideosBooks
AllTopicsTrends
BlogsPodcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K
    Cover of Test-driven development for embedded C

    Test-driven development for embedded C

    James W. Grenning · 2011

    Provides information and code examples that focus on the use of TDD in embedded C programming.

    Software EngineeringProgramming
    Open LibraryAmazon
    Stats for nerds
    6recommend
    13mentions
    9people
    2011–2023years
    54% recommend46% neutral

    Mentions per year

    2011201320152017201920212023

    What Hacker News says

    1. 0xDEFOct 2023
      Very useful C testing library that our embedded developers use along with the principles and methods described in the book 'Test-Driven Development for Embedded C':

      https://pragprog.com/titles/jgade/test-driven-development-fo...

      thread
    2. jgableMay 2020
      Hmm, sounds like you might be automating tests on the target, scripted from the PC. There's a place for this, but I'd call that automated integration/system testing, not unit testing.

      Unit testing was traditionally considered impractical for embedded systems, because the code is so closely tied to the hardware. However, with proper architecture and unit test frameworks that simplify your life, it's quite feasible, and indeed enjoyable.

      You write unit tests that exercise your embedded code, compiled for the PC, not the target. This ensures your code is portable.

      I use the Unity/CMock/Ceedling framework when I'm writing in C, and CppUTest when I'm writing in C++.

      I HIGHLY recommend the video courses taught by the guys at ThrowTheSwitch.org (the authors of Unity/CMock/Ceedling). See https://www.throwtheswitch.org/dr-surlys-school

      I read and enjoyed James Grenning's book, Test Driven Development for Embedded C, but it didn't really click for me until I took the video courses mentioned above. In the second course, you code an entire simple but realistic embedded project in TDD fashion.

      thread
    3. avianMay 2018
      "Test-Driven Development for Embedded C" by James W. Grenning.

      https://pragprog.com/book/jgade/test-driven-development-for-...

      It's very well written and I've used the unit testing approaches described there in several projects.

      thread
    4. trcollinsonJan 2015
      I really enjoy CppUTest. It was written by James Grenning who is one brilliant engineer if you ask me. He also wrote the fantastic book "Test Driven Development for Embedded C" which I would highly recommend to anyone, even non-embedded developers.

      I used CppUTest on a c++ project to test algorithms for image and video manipulation. It worked fantastically, very easy to learn, and it helped test drive and optimize the algorithms. Highly recommended.

      Edit: fixed typos, typing on phones is hard.

      thread
    5. kabousengDec 2013
      Have a look at test driven development for embedded C by James Grenning for a viewpoint of how TDD might work in the embedded world. I found it to be a great resource.

      http://pragprog.com/book/jgade/test-driven-development-for-e...

      thread
    6. trcollinsonSep 2013
      I respectfully beg to differ with your first statement. I TDD in embedded and low level code, well, always. There is a great work on this by Grenning, worth reading by anyone who wants to understand TDD better, whether it is for embedded C or any other type of application.

      Test-Driven Development for Embedded C http://pragprog.com/book/jgade/test-driven-development-for-e...

      thread

    Related

    Cover of An Embedded Software Primer
    2012

    An Embedded Software Primer

    David E. Simon
    3 recommend · 3
    Cover of Test-driven development
    2007–2026

    Test-driven development

    Kent Beck
    30 recommend · 62
    Cover of The C Programming Language
    2007–2026

    The C Programming Language

    Brian W. Kernighan
    246 recommend · 604
    Cover of Designing Data-Intensive Applications
    2014–2026

    Designing Data-Intensive Applications

    Martin Kleppmann
    457 recommend · 846
    Cover of Embedded C
    2010–2024

    Embedded C

    Michael J. Pont
    1 recommend · 3
    Cover of A retargetable C compiler
    2010–2026

    A retargetable C compiler

    Christopher W. Fraser
    9 recommend · 23
    Cover of The Standard C Library
    2009–2026

    The Standard C Library

    P. J. Plauger
    17 recommend · 29
    Cover of Modern C
    2015–2025

    Modern C

    Jens Gustedt
    37 recommend · 55