Skip to content

Show HN: Doctest – the lightest C++ testing framework – version 1.1 released

7 pointsonqtamdiscuss
On HN

https://github.com/onqtam/doctest version 1.1 brings the following major changes:

- HUGE improvements in compile time of asserts - 70-95% faster than the original one! https://github.com/onqtam/doctest/blob/master/doc/markdown/benchmarks.md#cost-of-an-assertion-macro

- wrote a FAQ - and the much requested differences with Catch section - https://github.com/onqtam/doctest/blob/master/doc/markdown/faq.md#how-is-doctest-different-from-catch

- MANY minor fixes - it didn't compile when using nullptr in asserts, etc. - see the changelog - https://github.com/onqtam/doctest/blob/master/CHANGELOG.md#110-2016-09-21

- improved documentation

- solved a very common problem of testing frameworks with self-registering tests inside static libraries - non-intrusive in pure CMake without any source code modification - see here - https://github.com/onqtam/doctest/blob/master/doc/markdown/faq.md#why-are-my-tests-in-a-static-library-not-getting-registered

- added code coverage of the library

The framework is in a very stable condition but there are still a lot of features in the roadmap - https://github.com/onqtam/doctest/blob/master/doc/markdown/roadmap.md.

I truly believe this framework can become the preferred choice for testing in C++ - the foundations are solid and pure and I believe there is nothing else quite like it.

The project is in need of sponsors and publicity!

I don't want this post to be a cry for money, but I would greatly appreciate any financial support by individuals or companies using (or wanting to use/support) the framework.

I created a patreon page - https://www.patreon.com/onqtam - for that purpose in addition to the pledgie campaign - https://pledgie.com/campaigns/31280

You can checkout the reddit thread for this here - https://www.reddit.com/r/cpp/comments/53tkzx/doctest_the_lightest_feature_rich_c_single_header/

Any feedback is welcome!

P.S. - how can I format this in hackernews? so many links ...

Comments

No comments yet.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.