TDD for Embedded C/C++
2021-09-09 09:36:35 UTC
Most useful learnings:
I had never worked with TDD before, and had heard very little about it before the course. My impression before the course was that TDD was only used to prevent bugs, but I found quickly out that there is more to it than that, such as refactoring and writing a better structured code when writing new code. I really liked having a step by step method while writing more secure code.
Concepts v exercises:
Presentation v discussion:
I had not heard about mock, spy and fakes before, so personally I had a hard time to fully understand their use case and how to set them up. These were already set up, maybe it could be an idea to include setting up the mock/fake/spy as a part of the exercise?
Not fully, due to the "How can the exercises be improved" part, i.e. I'm not so confident on how to use mock/spy/fakes.
Challenges to applying:
On the workshop day I wish we could dive deeper into writing more tests for the legacy code. We spent the whole day trying to make it compile, so I think it would be beneficial to see how tests can be written in our own environment.
Legacy code workshop:
Recommend to others: