babelouest / ulfius

Web Framework to build REST APIs, Webservices or any HTTP endpoint in C language. Can stream large amount of data, integrate JSON data with Jansson, and create websocket services
https://babelouest.github.io/ulfius
GNU Lesser General Public License v2.1
1.07k stars 183 forks source link

unit testing #167

Closed garylai00000 closed 4 years ago

garylai00000 commented 4 years ago

Is there any recommended unit testing tools for testing the APIs created by ulfius?

babelouest commented 4 years ago

The are several types for testing http APIs. It depends on what you want to test.

In ulfius and my other C projects, I use check to run tests and valgrind toi check for memory leaks and incorrect memory management.

You can check and reuse my tests if you need inspiration.