Overview
Learn how to implement unit testing for C and C++ applications using CppUTest in this comprehensive tutorial. Explore the process of writing unit tests, building a project structure, and creating makefiles for efficient testing. Discover how to build CppUTest locally and run tests on your code. Dive into advanced techniques by modularizing your testing environment with Docker and automating the testing process using GitHub Actions. Gain valuable insights into creating a robust Continuous Integration and Continuous Delivery (CI/CD) pipeline for your software projects, including embedded firmware development. Follow along with practical examples and learn best practices for designing testable code components and achieving good code coverage.
Syllabus
- Intro
- Overview of Unit Tests
- Using a Test Framework
- Writing the Component Under Test
- Writing the User Application
- Writing the Project Makefile
- Building CppUTest Locally
- Writing the Overall Test Makefile
- Writing a Unit Test
- Writing the Unit Test Makefile
- Running the Unit Tests
- Modularizing with Docker
- Automating Unit Tests with GitHub Actions
- Conclusion
Taught by
Digi-Key