The fastest feature-rich C++98/C++11 single-header testing framework for unit tests and TDD
doctest 1.2 released! Focus on features and runtime performance
by Viktor Kirilov
From the release:
- improved runtime by more than 30 times compared to version 1.1.4
- templated test cases - parameterized by type
- an exception translation mechanism
- logging context with lazy stringification
- multiple binaries (dll/exe) can share the same test runner/registry
- subcases can be filtered
- the
TEST_SUITE()
macro now works with blocks of code- crash handling support - using signals under UNIX and SEH under Windows
- added test case decorators - skip, may_fail, should_fail, expected_failures, timeout, etc.
- can show duration of test case execution
- added support for un-parenthesized expressions containing commas in asserts -
CHECK(std::vector<int>{1, 2} == std::vector<int>{1, 3});
- and many more! see the complete changelog
The reddit thread might be of interest as well.
Add a Comment
Comments are closed.