Ben Anderson

Ben builds things, virtual and physical; then teaches people about the things he's built. He also once plugged in a usb on his first try.

GitHub
https://github.com/Vandise

Sessions

Behavior-Driven Unit Testing in C

Summary

General processing units dominate the computational industry. We can use just about any compiler and have little concern with the binary executable. However, every bit is essential in the microcontroller and processor industry, and C++ compilers frequently exceed the devices capabilities.

Details

General processing units dominate the computational industry. As software developers, we can use just about any compiler and have little concern with the binary executable. However, every bit is essential in the microcontroller and processor industry, and C is the preferred tool. Though many compilers can output the instruction set required by a platform, the output varies significantly. Incompatibility occurs when using a C++ compiler and libraries, which most C unit testing frameworks require. In this talk, we will explore existing C unit testing frameworks and the development of a C-only behavior-driven testing framework using only the C preprocessor, rendering it compatible with the ATtiny10.