Skip to content

A minimal unit test framework in C for embedded projects, designed for STM32 (Arm Cortex-M4) and using sprintf with a 2D buffer to display test results.

Notifications You must be signed in to change notification settings

Masihtabaei/cobit-minimal-embedded-c-unit-test-framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cobit - A Minimal Embedded C Unit Test Framework

Note

This project was completed as part of the Applied Microcomputer Technology course during the Summer Term 2023 of our undergraduate studies, offered by Prof. Dr. Peter Raab at Coburg University. It was originally developed outside of GitHub and later partially migrated here, so some elements may be missing.

Important

This project is licensed under the MIT License.

Technologies Used

C Static Badge Git GitHub

General Information

Here you will find a minimal unit test framework for C to use in your embedded project.

I created this framework over the night in summer of 2023 for testing my embedded programs written in C for Nucleo-Board (with an Arm Cortex M4 based processor / STM32G474). It uses the sprintf and a two dimensional array as a buffer to display the test results. I called it cobit. cobit is a partial blend (Coburg [name of a small city located in Bavaria in Southern Germany] + Unit [for unit tests]) Feel free to extend/adjust this project so that it meets your goals.

Usage/Example

There is a file (example.c) which shows you how to use this minimal test framework. You can not execute that file (becaue there are other header files that you have to add to your project) but the purpose of this file should be giving you ideas how can you use this framework your personal projects.

About

A minimal unit test framework in C for embedded projects, designed for STM32 (Arm Cortex-M4) and using sprintf with a 2D buffer to display test results.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages