Hacker GitHub

← All repos

catchorg/Catch2

View on GitHub ↗ ★ 21,541 C++

A modern, C++-native, test framework for unit-tests, TDD and BDD - using C++14, C++17 and later (C++11 support is in v2.x branch, and C++03 on the Catch1.x branch)

15 mentions on Hacker News by 15 people: 3 stories, 12 comments · first 2011-01-30 · latest 2025-03-14

Mentions per year 15 mentions · busiest year 2020 (4)
20082026
  1. …for why metaprogramming is great, even if you're forced to do it in C/C++'s awful macro system. [1] https://github.com/catchorg/Catch2/blob/devel/docs/tutorial....
  2. …The way tests are written in this style naturally lends itself to self-documenting each branch [0]: https://github.com/catchorg/Catch2
    comment by TheSoftwareGuy · 2024-10-18 · in Unit tests as documentation
  3. ▲ 1
    C++ Comparison Operator Craziness
    story by whatisyour · 2024-02-12 · 0 comments
  4. https://github.com/scylladb/seastar https://github.com/scylladb/scylla https://github.com/catchorg/Catch2 https://github.com/facebook/folly
    comment by gtirloni · 2020-10-27 · in Ask HN: Good C++ code bases to read?
  5. …expression/abstraction for a safer language though. [1] http://arma.sourceforge.net/speed.html [2] https://github.com/catchorg/Catch2/blob/master/docs/tutorial...
  6. …rather than running to a breakpoint and examining things. Most useful tools: - tmux - vim - catch ( https://github.com/catchorg/Catch2 )
  7. ▲ 2
    Catch2 – C++-native, header-only, test framework for unit-tests, TDD and BDD
    story by letientai299 · 2020-05-24 · 0 comments
  8. …and have the output text auto-generated without even having to say what sort of comparison it is: https://github.com/philsquared/Catch Only downside is that while you'll save one hour not writing your own, you'll lose ten hours waiting for…
  9. …no external dependencies, reasonably fast compilation time, and does everything I need. 0: https://github.com/philsquared/Catch
    comment by imron · 2017-03-21 · in The sad state of test frameworks
  10. …a startup has. I've used Catch and been happy with it. I haven't used CppUnit, so I can't compare. https://github.com/philsquared/Catch Previous HN discussion (with some other suggestions): https://news.ycombinator.com/item?id=8220352 and…
  11. Also uses template to overload operator ->* https://github.com/philsquared/Catch/blob/785db43bb2cd64bfe7...
  12. The macro trick is at https://github.com/philsquared/Catch/blob/785db43bb2cd64bfe7... : planting the tested expression to the right of an operator ->*, which is overloadable and allows for changing the type of the left hand side in the…
  13. ▲ 95
    Catch: A modern, C++-native, header-only, framework for unit tests
    story by tbrock · 2014-08-25 · 30 comments
  14. …tricks to produce a pleasant syntax with good error debugging messages. For an example, see CATCH: https://github.com/philsquared/Catch/wiki I'd imagine this sort of stuff is much harder to port across systems than regular production code.
  15. …I am looking for a test framework for some time already and I liked the structure of CATCH ( https://github.com/philsquared/Catch ) a lot but the only downside is that it is C++ based (I don't want to extern "C" link to my C library). It…
    comment by liuliu · 2011-01-30 · in CASE: a Simple Test Framework for C