CXXTESTGEN(1)
β¨ CXXTESTGEN(1) β¨
okay bestie, pull up a chair because we're talking about cxxtestgen, and it's literally the manual page for it (section 1 of the manual, if you're keeping score π). she does test discovery. she builds you a test runner. she's iconic. let's get into it π
π¦ NAME π¦
cxxtestgen β performs test discovery to create a CxxTest test runner
πΈ SYNOPSIS πΈ
cxxtestgen [options] [<filename> ...]
π DESCRIPTION π
so the cxxtestgen command is out here processing your C++ header files to do test discovery (yes, she goes looking for the tests herself, main character energy fr), and then she creates files for the CxxTest test runner. that's the whole vibe. π«Ά
β¨ OPTIONS β¨
-h,--helpβ shows this help message and dips. classic.--versionβ writes out the CxxTest version. π·οΈ-o,--output=NAMEβ writes the output to the fileNAME.-w,--worldβ the label of the tests, used to name the XML results.--include=HEADERβ includes the fileHEADERin the test runner before all the other headers. she goes first, always. π--abort-on-failβ aborts tests on failed asserts, like xUnit does.--mainβ specifies an alternative name for themain()function.--headersβ specifies a filename that contains a list of header files, and those get processed to generate a test runner.--runner=CLASSβ creates a test runner that processes test events using the classCxxTest::CLASS.--gui=CLASSβ creates a GUI test runner that processes test events using the classCxxTest::CLASS. deprecated ngl, so don't get too attached π--error-printerβ creates a test runner using theErrorPrinterclass, and allows the use of the standard library.--xunit-printerβ creates a test runner using theXUnitPrinterclass.--xunit-fileβ the file to which the XML summary gets written, for test runners that use theXUnitPrinterclass. the default XML filename isTEST-<world>.xml, where<world>is the value of the--worldoption. (default:cxxtest)--have-stdβ uses the standard library, even if it wasn't found in the tests.--no-stdβ does not use the standard library, even if it was found in the tests.--have-ehβ uses exception handling, even if it wasn't found in the tests.--no-ehβ does not use exception handling, even if it was found in the tests.--longlong=TYPEβ usesTYPEfor long long integers. (default: not supported)--no-static-initβ does not rely on static initialization in the test runner.--template=TEMPLATEβ generates the test runner using the fileTEMPLATEto define a template.--rootβ writes themain()function and the global data for a test runner.--partβ writes the tester classes for a test runner.-f,--fog-parserβ uses the new FOG C++ parser. disabled π« (she's sitting in the corner, not invited to the function)
π EXIT STATUS π
0β success. we ate. π1β failure. and by failure I mean: syntax or usage error; configuration error; document processing failure; unexpected error. it's giving rough day at the office π
π BUGS π
go check the CxxTest Home Page for the link to the CxxTest ticket repository. that's where the drama lives.
π AUTHOR π
CxxTest was originally written by Erez Volk. Many people have contributed to it. shoutout to the whole squad fr fr π«Ά
π RESOURCES π
- Home page:
http://cxxtest.com/ - CxxTest User Guide:
http://cxxtest.com/cxxtest/doc/guide.html
π COPYING π
Copyright (c) 2008 Sandia Corporation. This software is distributed under the Lesser GNU General Public License (LGPL) v3.
bestie this was page CXXTESTGEN(1), dated 01/21/2012 β go forth and generate those test runners, you absolute legend βπ
β¨
π¦ where this page comes from
- debian bookworm: cxxtest 4.4+git171022-2 Β· LGPL-3.0-only
- debian trixie: cxxtest 4.4+git171022-2 Β· LGPL-3.0-only
- ubuntu jammy: cxxtest 4.4+git171022-2 Β· LGPL-3.0-only
- ubuntu noble: cxxtest 4.4+git171022-2 Β· LGPL-3.0-only
- ubuntu resolute: cxxtest 4.4+git230824-1 Β· LGPL-3.0-only
- ubuntu stonking: cxxtest 4.4+git230824-1 Β· LGPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms