How would you guys implement unit testing in C?

This page summarizes the projects mentioned and recommended in the original post on /r/C_Programming

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • soft6502

    An implementation of the 6502 Processor Emulator in C

  • For a couple of weeks I have been working on implementing my own MOS 6502 emulator in C. Here is the link to it : repo

  • ryanmock

  • I wrote a unit test library. https://gitlab.com/hansonry/ryanmock

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • tatl

    🗣 Tiny Test Framework for C89

  • Haha, I actually just finished writing a little unit testing library for C89 about a week ago. It’s very simple, contains examples, and you can get it up and running in just a few lines. Check it out here, if you’d like. :)

  • build

    Sample project showing a minimalist multiplatform build (by thradams)

  • I have created an small parser (https://github.com/thradams/build/blob/main/tools/maketest.c) that scans the source code searching function pattern inside #ifdef TEST blocks.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts