TGViewer
C++ - Reddit C++ - Reddit @r_cpp · 229 subscribers
Post #24487 28
Exploring macro-free testing in modern C++

Some time ago I wrote about a basic C++ unit-testing library I made that aimed to use no macros. I got some great feedback after that and decided to improve the library and release it as a standalone project. It's not intended to stand up to the giants, but is more of a fun little experiment on what a library like this could look like.

Library: https://github.com/anupyldd/nmtest

Blogpost: https://outdoordoor.bearblog.dev/exploring-macro-free-testing-in-modern-cpp/

https://redd.it/1pmflde
@r_cpp
GitHub GitHub - anupyldd/nmtest: Macro-free unit-testing library in modern C++ Macro-free unit-testing library in modern C++. Contribute to anupyldd/nmtest development by creating an account on GitHub.
More from @r_cpp
  1. Oct 10, 2026I’m Building Bursztyn OS a Polish Operating System From Scratch I’m building Bursztyn OS,…
  2. Oct 9, 2026std::variant, operator== and pattern matching I was thinking, wouldn't adding equality com…
  3. Oct 8, 2026Profiles for simplicity and guarantees - Bjarne Stroustrup - CppCon 2026 https://youtu.be/…
  4. Oct 8, 2026How to Fix autoconf-style Configuration Probing https://build2.org/blog/fix-autoconf.xhtml…
  5. Oct 8, 2026owl – a header-only C++23 HTTP framework where route patterns and handler extractors are c…
  6. Oct 8, 2026Removed by Reddit Removed by Reddit on account of violating the [content policy. ] https:/…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →