Skip to content

A C and C++ unit testing library written in C.

License

Notifications You must be signed in to change notification settings

Firefnix/confer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Confer

Confer is a C and C++ unit testing library written in C.

Features

Confer comes with a number of tools and feaures out of the box.

  • 20+ built-in assertions for most common types
  • Custom assertions
  • Fast build (...)
  • Extra-light library written in C, no dynamic memory allocation (hence no memory leaks)
  • A handy tool to manage projects and run tests (not compulsory)

Preview

To start using Confer, simply , and include it in your test file:

#include <confer.h>

Then, after calling the initialization function, you will be able to write your first tests:

void main(void) {
  cfInit(); // nothing more needed
  cfTest(test_my_function); // call subtests
  cfPrintCallTree(); // show the results
}

void test_my_function(CFTEST) { // make it a test
  assertIntEqual(my_function(0), 1);
  assertIntGreater(my_function(2), 7);
}

What next?

To know more about the library, we also recommend you visiting Confer docs .

Where can I get help?

Feel free to open issues on the Github Repo, especially if you did not find an answer to a question in our documentation. You can also reach out directly to the maintainer via email at firefnix@gmail.com.

About

A C and C++ unit testing library written in C.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published