CXXTESTGEN(1)

πŸ“¦
version 4.4+git230824 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ 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 file NAME.
  • -w, --world β€” the label of the tests, used to name the XML results.
  • --include=HEADER β€” includes the file HEADER in 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 the main() 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 class CxxTest::CLASS.
  • --gui=CLASS β€” creates a GUI test runner that processes test events using the class CxxTest::CLASS. deprecated ngl, so don't get too attached πŸ’€
  • --error-printer β€” creates a test runner using the ErrorPrinter class, and allows the use of the standard library.
  • --xunit-printer β€” creates a test runner using the XUnitPrinter class.
  • --xunit-file β€” the file to which the XML summary gets written, for test runners that use the XUnitPrinter class. the default XML filename is TEST-<world>.xml, where <world> is the value of the --world option. (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 β€” uses TYPE for 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 file TEMPLATE to define a template.
  • --root β€” writes the main() 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 πŸ’€

  1. 0 β€” success. we ate. πŸŽ‰
  2. 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 🌈


πŸ’œ 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 β­πŸ’…βœ¨