# Building an On-Device Embedded Testing Library

DevFeed: [Building an On-Device Embedded Testing Library](<https://devfeed.tech/articles/building-an-on-device-embedded-testing-library-47371.md>)

Original publisher: [Read original article](<https://interrupt.memfault.com/blog/testing-library>)

Author: Jan Koniarik

Published: 2022-06-07T00:00:00Z

Content type: article

Language: en

Sources: [Interrupt](<https://devfeed.tech/sources/interrupt.md>)

Topics: [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [testing-library](<https://devfeed.tech/topics/testing-library.md>), [C++](<https://devfeed.tech/topics/c-plus-plus.md>), [Embedded Software Dev](<https://devfeed.tech/topics/embedded-software-dev.md>), [Microcontroller](<https://devfeed.tech/topics/microcontroller.md>)

Tags: [c-plus-plus](<https://devfeed.tech/tags/c-plus-plus.md>), [embedded](<https://devfeed.tech/tags/embedded.md>), [embedded-devices](<https://devfeed.tech/tags/embedded-devices.md>), [firmware](<https://devfeed.tech/tags/firmware.md>), [microcontrollers](<https://devfeed.tech/tags/microcontrollers.md>), [testing](<https://devfeed.tech/tags/testing.md>), [testing-library](<https://devfeed.tech/tags/testing-library.md>)

## AI overview

The post explains why conventional C/C++ testing libraries are poorly suited to constrained embedded devices and describes the rationale and requirements for a custom testing library that runs directly on microcontroller hardware.

## Source excerpt

There are too few C/C++ testing libraries designed for embedded devices. The traditional libraries are not designed for constrained resources and rely on host functionality like a filesystem or standard output. In this post, I detail why I've decided to design a new testing library for microcontrollers and cover the rationale, design choices, and thoughts on the prototype. Continue reading...