Cgreen has MOVED to GitHub: https://github.com/cgreen-devs/cgreen, files, documentation, source, issues are all there. This repo is OBSOLETE and not updated anymore.

Cgreen is a unittesting and mocking framework for 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.

Go to GitHub: https://github.com/cgreen-devs/cgreen to learn more.

Features

  • 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

Project Samples

Project Activity

See All Activity >

Categories

Software Testing

License

GNU Library or Lesser General Public License version 2.0 (LGPLv2), ISC License

Follow Cgreen

Cgreen Web Site

Other Useful Business Software
Already Paying for an RMM? Get 50% Off Splashtop AEM Icon
Already Paying for an RMM? Get 50% Off Splashtop AEM

Switch to Splashtop AEM and save up to 50% in your first year

Automated OS and third-party patching for Windows and macOS, CVE prioritization with AI patch summaries, and built-in remote control that also supports Linux. Qualifying organizations switching from another RMM get up to 50% off year one.
Get Started
Rate This Project
Login To Rate This Project

User Ratings

★★★★★
★★★★
★★★
★★
★
2
0
1
0
0
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

User Reviews

  • 3 out of 5 stars
    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.
    2 users found this review helpful.
  • 5 out of 5 stars
    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.
  • 5 out of 5 stars
    Thumbs up! will try to contribute
Read more reviews >

Additional Project Details

Operating Systems

BSD, Cygwin, Linux, Mac

Intended Audience

Developers

User Interface

Command-line

Programming Language

C, C++

Related Categories

C++ Software Testing Tool, C Software Testing Tool

Registered

2006-08-31