Skip to content

FW: Add unit test framework #238

Description

@Ruben-Lohberg

We should integrate a unit test framework into the project.

  • Modern coding agents are quite good at adding unit tests to an existing codebase, which may already catch some bugs
  • We can add specific tests whenever we fix a bug to ensure the same bug does not return in later development
  • Allows for test driven development which might be a promising approach for some of our issues

Unit tests can be run both locally during development and in a pipeline on pull requests. Unit test frameworks can create well formatted test reports which a pipeline can paste into a pull request.

https://cpputest.github.io/ looks promising. It is specifically designed for embedded C/Cpp, but there are many other options

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions