CGREEN-RUNNER(1)
πΈ CGREEN-RUNNER πΈ
okay bestie, welcome to cgreen-runner, section 1 of the General Commands Manual. it's an auto-discovering runner for the Cgreen unittest and mocking framework, and honestly? she eats. π
β¨ NAME β¨
cgreen-runner β an auto-discovering runner for the Cgreen unittest and mocking framework π§
π SYNOPSIS π
cgreen-runner [--colour] [--xml prefix] [--suite name] [--verbose]
[--no-run] [--help] ( LIBRARY [test] )+
π DESCRIPTION π
so here's the tea: Cgreen is a framework for creating and running compact and easy-to-read unittests for C and/or C++. after you compile your tests and link them together with the code/class/subject under test (that's the CUT/SUT, iykyk) into a shared dynamically loadable LIBRARY, you can auto-discover and run all your tests using cgreen-runner β and you never have to manually add each and every single test you write to a suite programmatically. not one. not ever. ππ
this makes the TDD cycle even faster and less error-prone. one less thing to remember. main character energy fr fr. π¦
π«Ά Usage: π«Ά
Discover and run all, or a single named, cgreen test(s) from one or multiple dynamically loadable library.
a single test can be run using the form [<context>:]<name> where <context> can be omitted if there is no context. periodt. β¨
π OPTIONS π
-c,--colours/colorsβ use colours to emphasis result (requires an ANSI-capable terminal, so don't come crying to me if your terminal is stuck in 1998 π)-x,--xml prefixβ instead of messages onstdout, write results into one XML-file per suite, compatible with Hudson/Jenkins CI. the filename(s) will beprefix-<suite>.xmlβ-s,--suite nameβ give the top level suite name instead of the name in theLIBRARY.-n,--no-runβ don't run the tests. (not me discovering everything and running nothing π)-v,--verboseβ show progress information during run.-V,--versionβ show version information and exit.-h,--helpβ print some usage information and exit.
π SEE ALSO π
cgreen(5)- the full documentation for
cgreen-runnerand the Cgreen framework is in the Cgreen manual available at GitHub. π
lowkey a whole framework, highkey a whole vibe. go write some tests bestie, you got this. π
and that's the page, babes β brought to you by cgreen-runner out of the General Commands Manual, section 1. mwah, bye! πππΈ
π¦ where this page comes from
- alpine 3.24: cgreen-doc 1.6.4-r0 Β· ISC
- debian trixie: cgreen1 1.6.4-1 Β· ISC
- epel 10: cgreen-runner 1.6.5-2.el10_3 Β· ISC
- fedora 43: cgreen-runner 1.6.5-2.fc43 Β· ISC
- fedora 44: cgreen-runner 1.6.3-1.fc44 Β· ISC
- fedora 44: cgreen-runner 1.6.5-2.fc44 Β· ISC
- nixos 26.05: cgreen 1.6.4
- nixpkgs unstable: cgreen 1.6.5
- ubuntu noble: cgreen1 1.6.3-1build1 Β· ISC
- ubuntu questing: cgreen1 1.6.4-1build1
- ubuntu resolute: cgreen1 1.6.4-3 Β· ISC
- ubuntu stonking: cgreen1 1.7.0-1 Β· ISC
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms