~/talk

Mix Tests and Production Code With Doctest...

Talkat CppCon 2017 · 2017-09-24..09-29· [testing]
links:none on file
slides:none on file

doctest is a single-header C++ test framework that actually ships a tiny interface and a separate implementation block so including it everywhere costs ~20 ms vs ~500 ms for Catch and you can remove all tests from release binaries with a compile-time flag. it auto-registers tests by initializing a global dummy that calls regTest, supports subcases and templated test cases, user-registered exception translators and lazy stringification, and its author reports 50,000 asserts compiling in under 10s in the fastest mode; CI covers ~300–400 builds.

AI-written summary · about

  1. 0:00Introduction to Doctest
  2. 1:36Integration and Setup
  3. 3:04Basic Test Example
  4. 4:18Key Features and Benefits
  5. 5:55Assertions and Subcases
  6. 7:33Advanced Test Features
  7. 9:25Test Registration Details
  8. 11:05Test Case Registry & Suites
  9. 13:13Handling Warnings & Macros
  10. 15:52Preprocessor Techniques
  11. 17:21Subcase Implementation
  12. 19:37Production Code Integration
  13. 21:22Assertion Mechanisms
  14. 23:14Expression Decomposition
  15. 25:05Exception Translation
  16. 28:38Compile Time Benchmarks
  17. 31:02Assertion Performance
  18. 32:58Benchmark Results
  19. 35:16Runtime Performance
  20. 37:26Optimization Techniques
  21. 39:40Library Specific Considerations
  22. 41:43Development Challenges
  23. 43:40Roadmap and Future
  24. 45:26Q&A Session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.