Skip to content

kimatata/embeded-googletest-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoogleTest unit test code sample for embedded software

This repository contains unit test code samples for embedded software. I use GoogleTest as a testing framework for C. It includes examples of using test doubles such as dummy, stub, and mock to isolate hardware dependencies specific to embedded software.

Prerequisites

Install GoogleTest and GoogleMock. Please refer to the official GoogleTest documentation.

https://google.github.io/googletest/quickstart-cmake.html

Install other tools

sudo apt install cmake build-essential lcov

Run test suite

./runTests.sh

Google test execute image

Generate Coverage Report

./runTests.sh --coverage

Google test execute image

About

GoogleTest unit test code sample for embedded software

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published