Cgreen Icon


Unittesting and mocking framework for C and C++

4.3 Stars (3)
0 Downloads (This Week)
Last Update:
  Browse Code SVN Repository



Cgreen has moved to GitHub:, files, documentation, source, issues are all there.

Cgreen simplifies unittesting and mocking in C and C++. Features include composite test suites, each test can be run in it's own process, trapping of hung tests, setup and teardown, extensible interface, support for mocking functions and automatic discovery of tests.

Cgreen Web Site


  • Fluent assert/constraint/mock interface
  • Mocking of functions
  • Each test is run in it's own process
  • Traps hung tests
  • Composite test suites
  • Set up and tear down xUnit style
  • Extensible interface
  • Optional BDD style with Subject Under Test


Other Useful Business Software

Streamline your IT Buying experience Icon

With simplified procurement from

Streamline your IT Buying experience Icon
Easily access more than 100,000 products and tools with our robust search engine. Manage your entire IT lifecycle from purchase to renewal all in one place — so you can get more done faster.

User Ratings

ease 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 2 / 5
features 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 4 / 5
design 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 4 / 5
support 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 3 / 5
Write a Review

User Reviews

  • 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5

    It seems like this application is great for testing, but there are some issues that are preventing a better review. First is that most of the binary packages are missing a header file to get a test working. The package is available in the src package. The instructions for building the source also don't appear to work. I am wondering if something minor is missing.

    Posted 08/21/2013
  • 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5

    I compared a lot of free unit test frameworks. an important point was that the test should continue after an illegal memory operation has been commited. most of the frame works died or became unpredictable even if they detected the segfault. cgreen and libu did the best job. since cgreen has additional mocking features, this one became my favorite.

    Posted 06/22/2010
  • 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5

    Thumbs up! will try to contribute

    Posted 11/28/2009
Read more reviews

Additional Project Details

Intended Audience


User Interface


Programming Language

C++, C



Thanks for helping keep SourceForge clean.

Screenshot instructions:
Red Hat Linux   Ubuntu

Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Briefly describe the problem (required):

Upload screenshot of ad (required):
Select a file, or drag & drop file here.

Please provide the ad click URL, if possible:

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks