[feat] Add a unit-testing framework to the kernel #12

Closed
opened 2024-02-28 09:23:38 +01:00 by hgruniaux · 0 comments
hgruniaux commented 2024-02-28 09:23:38 +01:00 (Migrated from github.com)

Programming a kernel is quite a daunting task. It will be a good idea to test it extensively. For that, a first step is to write unit tests. But, the traditional unit testing frameworks in C++ (GoogleTest, Catch2, etc.) may not be compatible with kernel development.

So, we need probably to implement our own unit-testing framework (a simplified one). In practice, this should not be too difficult.

Expected features:

Programming a kernel is quite a daunting task. It will be a good idea to test it extensively. For that, a first step is to write unit tests. But, the traditional unit testing frameworks in C++ (GoogleTest, Catch2, etc.) may not be compatible with kernel development. So, we need probably to implement our own unit-testing framework (a simplified one). In practice, this should not be too difficult. Expected features: - Self-registering tests, see: - https://artificial-mind.net/blog/2020/10/17/static-registration-macro - https://gist.github.com/wotchin/95c00577119acfc96e416b895ac546c2 - GoogleTest compatible output - Mocking?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
hubert/Pi-kachULM_OS#12
No description provided.