doctest
Doctest is a lightweight test roof consisting of a single header file, supporting C++11, 14, 17, 20, and 23 standards. Compared to other alternatives, it offers high performance in compilation and run times. It allows tests to be written directly into the production code, and can be completely removed from compilation outputs.
doctest
80doctest · Testing & QA
Common commercial products in this category: BrowserStack, Sauce Labs, TestRail
- You write the tests directly into the production code.
- You use the claims with confidence in multiple threads.
- You remove the test codes completely from the compilation output.
- ↑ PositiveHacker News
Show HN: Doctest – C++ single-header testing framework
“no access to a linux machine - otherwise I might have tested with clang too. Also you may try the bench.py script yourself :) But this is not a benchmark of compilers but a benchmark between doctest and the other such library - and this comparison should be compiler-neutral And…”
- • NeutralHacker News
Doctest.js: a humane Javascript test framework
“FWIW, doctest.js briefly supported CoffeeScript, back when the format was essentially language-neutral: $ makeRequest({ > url: ' > data: 'foo', > success: Spy('makeRequest', {wait: true}), > }); makeRequest(...) The example and output was parsed essentially by regexes. That was…”