Sample Video Frame

Created by Zed A. Shaw Updated 2024-02-17 04:54:36

Exercise 30: Automated Testing

Automated testing is used frequently in other languages like Python and Ruby, but rarely used in C. Part of the reason comes from the difficulty of automatically loading and testing pieces of C code. In this chapter, we'll create a very small testing framework and get your skeleton directory to build an example test case.

The frameworks I'm going to use, and you'll include in your c-skeleton skeleton is called minunit which started with a tiny snippet of code by Jera Design. I evolved it further, to be this:

Previous Lesson Next Lesson

Register for Learn C the Hard Way

Register today for the course and get the all currently available videos and lessons, plus all future modules for no extra charge.