~/talk

"unit"_test: Implementing a Macro-free Unit Testing Framework from Scratch in C++20

Talkat CppCon 2021 · on Thursday, 2021-10-28· at 09:00· online· [testing]
links:none on file
slides:none on file

Claim: a working macro-free C++20 framework is implemented from scratch that makes the shown snippet compile and run. It uses C++20 features — modules concepts source_location plus new lambda and UDL tricks — to provide tests, suites, sections, BDD, matchers and a parallel runner as a single header single module delivery. Benchmarks show faster compile and run vs. common frameworks; results include cross‑compiler support (works on four compilers, MSVC 2019 with caveats) and published code on GitHub.

AI-written summary · about

  1. 0:00Introduction
  2. 2:03Outline of the talk
  3. 4:33Motivation
  4. 6:44Problems
  5. 9:10Goal
  6. 10:18Implementation
  7. 12:44Modules
  8. 15:56Test
  9. 20:07Test Implementation
  10. 24:46Operator Concept
  11. 25:51Implementation Overview
  12. 28:32Getting the correct return type
  13. 31:28Missing the file and line
  14. 32:53Passing the location into the error
  15. 35:21Expect
  16. 37:29Suite
  17. 41:11Filter
  18. 42:11Tags
  19. 46:34Printing
  20. 52:06Meta programming
  21. 55:13Questions
  22. 56:36Benchmarks
~/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.