Thread: Generic C libraries, unit testing

  1. #1
    Registered User
    Join Date
    Jan 2020

    Generic C libraries, unit testing

    Long story short, switched to C programming from C++.
    Everything seemed simple until I've encountered need of some containers(vector and map for start), sorting, searching. I don't want to reinvent bicycle and want to just write the code.
    I'm confused which one is commercially used, is it Glib, qLibc? Which should you recommend that is widely used and open source?

    Unit testing, in C++ it was CppUnit or GTest. I will develop a bit of embedded code/libraries and mostly Unix applications.
    What should be enough? People and wikipedia seem to say Unity or CTest are the case. On previous projects unit test coverage to pass review was 100%.

    Thanks in advance,

  2. #2
    Registered User
    Join Date
    Apr 2017
    Glib is OK , I have a little experience with CUnit too.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Unit testing in C++?
    By Alice12 in forum C++ Programming
    Replies: 3
    Last Post: 12-16-2019, 11:24 AM
  2. C and C++ unit testing framework
    By Siddu_Kyocera in forum C Programming
    Replies: 1
    Last Post: 05-21-2010, 08:34 AM
  3. what can not be tested in C++ unit testing?
    By Alexpo in forum C++ Programming
    Replies: 1
    Last Post: 03-01-2010, 12:31 AM
  4. A Question About Unit Testing
    By Tonto in forum C++ Programming
    Replies: 2
    Last Post: 12-14-2006, 08:22 PM
  5. Unit testing tools for .NET ?
    By gicio in forum C# Programming
    Replies: 0
    Last Post: 11-10-2003, 04:43 AM

Tags for this Thread