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
20082026
-
…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....
comment by widdershins · 2025-03-14 · in Functional Tests as a Tree of Continuations (2010) -
…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 -
▲ 1
C++ Comparison Operator Crazinessstory by whatisyour · 2024-02-12 · 0 comments
-
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? -
…expression/abstraction for a safer language though. [1] http://arma.sourceforge.net/speed.html [2] https://github.com/catchorg/Catch2/blob/master/docs/tutorial...
comment by papaf · 2020-06-12 · in Ask HN: Why do you use Rust, when D is available? -
…rather than running to a breakpoint and examining things. Most useful tools: - tmux - vim - catch ( https://github.com/catchorg/Catch2 )
comment by 1e-9 · 2020-06-09 · in Ask HN: Which tools have made you a much better programmer? -
▲ 2
Catch2 – C++-native, header-only, test framework for unit-tests, TDD and BDDstory by letientai299 · 2020-05-24 · 0 comments
-
…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…
comment by to3m · 2017-05-08 · in MinUnit: a minimal unit testing framework for C -
…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 -
…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…
comment by cottonseed · 2015-01-08 · in Ask HN: What is a good C++ unit test framework for a startup? -
Also uses template to overload operator ->* https://github.com/philsquared/Catch/blob/785db43bb2cd64bfe7...
comment by ximeng · 2014-08-25 · in Catch: A modern, C++-native, header-only, framework for unit tests -
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…
comment by andralex · 2014-08-25 · in Catch: A modern, C++-native, header-only, framework for unit tests -
▲ 95
Catch: A modern, C++-native, header-only, framework for unit testsstory by tbrock · 2014-08-25 · 30 comments
-
…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.
comment by TimSAstro · 2012-10-27 · in Why Are There So Many C++ Testing Frameworks? -
…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