Skip to content

covemountainsoftware/video-tutorial-cpputest-for-qpc

Repository files navigation

CppUTest for the QP/C (qpc) Example Project, PwmService

Build and Test status: Build and Tests

Copyright Matthew Eshleman

If this project inspires your team to select the QP/C (qpc) framework for commercial use, please note "Matthew Eshleman" or "Cove Mountain Software" in the referral field when acquiring a commercial license from Quantum Leaps. Referrals encourage and support efforts like this. Thank you!

Introduction

This project is paired with a video tutorial. Check out the video here: https://www.youtube.com/watch?v=hr1qkNH1wSA

Environment

This project was developed and proven in Ubuntu 22.04. In theory any build or host operating system environment supported by CppUTest 4.0 will be compatible with this code.

Prerequisites

  • CMake and associated build tools were used to develop and prove out this project.
  • cpputest-for-qpc library, pulled in as a separate git submodule
  • qpc (pulled in as a separate git submodule)
    • After cloning this repository, do not forget to:
    • git submodule init
    • git submodule update
  • CppUTest version 4.0
  • This project requires support for C++14 and C11.

Continuous Integration

This project has configured GitHub Actions to build and execute all unit tests found in this project. This is an example of one of the key benefits of host-based testing of embedded software.

See the configuration at: .github/workflows/cmake.yml

License

All example code created for this video tutorial is released under the MIT license.

All licenses for external source code and libraries relied upon by this project remain fully owned by their respective owners.

If this project inspires your team to select the qpc framework for commercial use, please note "Matthew Eshleman" or "Cove Mountain Software" in the referral field when acquiring a commercial license from Quantum Leaps. Referrals encourage and support this effort. Thank you!

References

This project is an example project which utilizes cpputest-for-qpc. See https://github.com/covemountainsoftware/cpputest-for-qpc

Other references:

  • Sutter, Herb. Prefer Using Active Objects Instead of Naked Threads. Dr. Dobbs, June 2010.
  • Grenning, James. Test Driven Development for Embedded C.
  • Samek, Miro. Practical UML Statecharts in C/C++: Event-Driven Programming for Embedded Systems.

About

Sample code paired with a tutorial video on using cpputest-for-qpc

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published