Skip to content

alepharchives/greatest

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A unit testing system for C, contained in 1 file. It doesn't use dynamic allocation or depend on anything beyond ANSI C89, and the test scaffolding should build without warnings under -Wall -pedantic.

To use, just include greatest.h in your project. Note that there are some compile time options, and additional functionality (parametric testing) is available if compiled with -std=c99.

For usage examples, look at example.c and example-suite.c.

Usage: (test_runner) [-hlv] [-s SUITE] [-t TEST]
  -h        print this Help
  -l        List suites and their tests, then exit
  -v        Verbose output
  -s SUITE  only run suite named SUITE
  -t TEST   only run test named TEST

About

A C unit testing library in 1 file. No dependencies, no dynamic allocation. ISC licensed.

Resources

Stars

Watchers

Forks

Packages

No packages published