covemountainsoftware / activeObjectUnitTestingDemo

C++ project demonstrating active object and statemachine unit testing, using CppUTest.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Active Object and State Machine Unit Testing Demo

C and C++ project demonstrating active object and state machine unit testing, using CppUTest.

This project was created to provide an example code base supporting the following post:

https://covemountainsoftware.com/2020/04/17/unit-testing-active-objects-and-state-machines/

Platform

This project and associated code were developed and tested in Ubuntu 16.04 using CLion 2020.1. Recently confirmed in OSX 10.14.6, again using CLion 2020.1.

The project requires an installation of CppUTest version 3.8.

Build Targets

HwLockCtrlServiceTests

The primary focus should be the "HwLockCtrlServiceTests" build target and associated code. See the folder "services/hwLockCtrlService" and associated code and tests.

cmsActiveObjectTests

Secondary focus may be given to this target and associated code. These classes create the foundation needed for the primary code/focus.

cmsFlatStateMachineTests

Secondary focus may be given to this target and associated code. This trivial flat state machine class create the foundation for this project's demonstration active object class.

demoPcApp

This target is a trivial terminal demo app showing the target service in action "for real."

References and Inspiration

Questions?

Contact information is available here: https://covemountainsoftware.com/services/consulting/

About

C++ project demonstrating active object and statemachine unit testing, using CppUTest.

License:MIT License


Languages

Language:C++ 90.8%Language:C 5.3%Language:CMake 3.9%