CGREEN(5)

🌸 NAME 🌸

cgreen β€” bestie, it's a whole framework for C and C++ unit tests and mocking πŸ’–


✨ DESCRIPTION ✨

Okay so Cgreen is a framework for making and running unit tests for C and/or C++, and the whole point is that they're compact and easy-to-read. Like, tests you can actually look at without your soul leaving your body 🫢

Here's the lineup of features, no cap:

  • Fluent API that results in very readable tests πŸŽ€
  • Expressive and clear output using the default reporter ✨
  • Fully functional mocks, both strict and loose πŸ’…
  • Each test runs in its own process for test suite robustness πŸ”₯
  • Automatic discovery and running of tests using dynamic library inspection πŸ‘‘
  • Extensive and expressive constraints for many datatypes 🌈
  • BDD-flavoured test declarations with Before and After declarations πŸ¦‹
  • Extensible reporting mechanism 🧚
  • Fully composable test suites ⭐
  • An isolated test can be run in a single process for debugging πŸ’€

πŸ’œ SEE ALSO πŸ’œ

The full documentation for cgreen-runner and the Cgreen framework lives in the Cgreen manual, which you can find on GitHub at ⟨https://github.com/cgreen-devs/cgreen⟩ πŸ“


and that's the tea, bestie πŸŽ€ this was the CGREEN(5) page, hanging out in the File Formats Manual section of your friendly neighbourhood man pages. go write some tests that actually spark joy βœ¨πŸ’–