TDD for Embedded C++
2019-12-13 15:49:38 UTC
Most useful learnings:
How to use cppunitest. Some of my team use it, but I have not used it for my own tests, so I will for future code modules I write. Need to think more about how best to apply to legacy tests.
I have come across most TDD and refactoring concepts before but it is always good to revise these things.
Work in smaller steps.
Concepts v exercises:
Presentation v discussion:
I felt the balance between listen/discussion/exercises was about right
Circular buffer was a good exercise - it is in fact the C coding test I give for interviewees!
Flash driver, interesting but less useful, need to think more about how can apply to our drivers, we had a good discussion on our last day. Since our hardware is mostly our own IP we have to learn how it works by poking it and looking at HW team test code, we don't very often get a nice flow chart, sometimes the HW team have to look at RTL to tell us how it works!
Bring it on!
Challenges to applying:
Updating legacy tests to use the cpputest framwork.
Enjoyed the course very much thanks. It was good out Italian colleagues were able to come (who we work closely with) so it is not just my team demonstrating this approach
Legacy code workshop:
Recommend to others: