News for hackers. Stuff that matters.
Re:The Two Factions of C++ by Maxatar on Monday November 25, 2024 @10:27AM (#42237053)
catch2 has become fairly bloated. doctest takes all of the best parts of catch2 without all the bloat and the end result is a test framework that is literally over 10x faster than catch2. It's also like 90% compatible with catch2 so porting your tests to it is pretty easy.

Especially if you have a build process that always runs your unit tests, it's nice to have a very fast test/compile/debug loop.

https://github.com/doctest/doctest

Re:The Two Factions of C++ by gary_0 on Monday November 25, 2024 @10:39AM (#42237144)
I was just about to suggest doctest, you beat me to it! I'm all about faster compile times, and it was mostly a drop-in replacement for catch2 in my case.

Also, IMO, both doctest and catch2 are far superior to Google Test.

Re:The Two Factions of C++ by Suppafly on Monday November 25, 2024 @01:45PM (#42238906)
>catch2 has become fairly bloated. doctest takes all of the best parts of catch2 without all the bloat and the end result is a test framework that is literally over 10x faster than catch2. It's also like 90% compatible with catch2 so porting your tests to it is pretty easy.

I feel like you could make a madlib where you could plug in any two project names and this sentence would make sense.

Re:The Two Factions of C++ by bee_rider on Monday November 25, 2024 @02:19PM (#42239252)
Madlibs have become fairly bloated. Copypasta memes take all the best parts of madlibs without all the bloat and the end result is a form of mockery is literally over 10x faster than a madlib. It's also like 90% compatible with madlibs so porting your gibes is pretty easy.