~/talk

Mastering CTest: Streamlining Your C++ Testing Workflow

Talkat Core C++ 2024 · 2024-11-26..11-28· [c-and-cpp, testing]
links:none on file
slides:none on file

Shows how to wire CTest into CMake: include the CTest module, register tests with add_test, and run them with ctest using -R/-I filters; demonstrates three styles—hand-rolled runner, GoogleTest, Catch2—and a reusable CMake snippet that creates a coverage target via lcov/genhtml producing clickable HTML. Adds a one-step build-and-test target, parallel and retry runs, CDash upload for reporting (CDash), and a real flaky example that fails ~1/50 runs which is isolated by a 2000-run nightly job. Repository and exact CMake snippets are available.

AI-written summary · about

  1. 0:00Introduction to CTest
  2. 2:38Why use testing tools
  3. 5:32Setting up CTest basics
  4. 8:49Integrating test frameworks
  5. 10:12Build and test automation
  6. 11:39Advanced CTest features
  7. 12:46Code coverage with CTest
  8. 15:39Benefits of CTest
  9. 16:45Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.