Nordic Semiconductor (Noruega)
Mocking frameworks for unit tests
It can be a challenge to effective unit tests, especially those that test invalid behaviors. That’s where mocking frameworks come in.
In this talk, I will present the three mocking frameworks CMock, CMocka, and fake function framework. These are powerful frameworks that allow a developer to write effective unit tests and help them achieve the required code coverage.
I will present my experiences with them and draw some comparisons so that you can chose what is best for your team. I will touch upon test-driven development using these frameworks, show example tests, and run demos.
Balaji has been working as an embedded software developer for low power wireless devices for over 10 years.
He worked on Nordic Semiconductor’s Bluetooth Low Energy stack, the SDK, and more recently cellular IOT applications.
He has experience in both bare metal and zephyr RTOS based applications. His is passionate about software quality, open source software, continuous integration, and test driven development. Before Nordic Semiconductor, he was working for over 7 years in India as a software developer in the telecom industry.