README 1.0 KB

1234567891011121314151617181920212223242526
  1. Catch stands for C++ Automated Test Cases in Headers and is a
  2. multi-paradigm automated test framework for C++ and Objective-C
  3. (and, maybe, C). It is implemented entirely in a set of header
  4. files, but is packaged up as a single header for extra convenience.
  5. Key features:
  6. - Really easy to get started. Just download catch.hpp,
  7. #include it and you're away.
  8. - No external dependencies. As long as you can compile
  9. C++98 and have a C++ standard library available.
  10. - Write test cases as, self-registering, functions or
  11. methods.
  12. - Divide test cases into sections, each of which is run
  13. in isolation (eliminates the need for fixtures!)
  14. - Use BDD-style Given-When-Then sections as well as
  15. traditional unit test cases.
  16. - Only one core assertion macro for comparisons.
  17. Standard C/C++ operators are used for the comparison -
  18. yet the full expression is decomposed and lhs and rhs
  19. values are logged.
  20. Note: To enable Catch's self-tests, export SELFTEST=yes in the
  21. script's environment. This doesn't affect the binary package that gets
  22. built.