~/talk

Unit Testing in Qt Applications

Talkat Qt Developer Days 2008 · 2008-10-14..10-15· [testing]
links:none on file
slides:none on file

QTestLib is a lightweight C++ unit test framework shipping as standalone executables with data‑driven tests, GUI event simulation (key/mouse, QTestEventList) and helpers like QSignalSpy and a QTestEventLoop; command‑line XML/verbose output and an X “sepher” display isolate noisy widgets. Memory debugging uses valgrind and mudflap; internal numbers: ~6,000 lines of test framework code and about 7,000 unit tests run nightly, catching leaks and regressions (examples show 84/59 passed runs).

AI-written summary · about

  1. 0:00Intro
  2. 1:35Contents
  3. 1:58Definition of Unit Testing
  4. 3:13What is it?
  5. 5:46Hello World
  6. 7:25Boring work
  7. 7:49Build it
  8. 11:28Macros
  9. 13:13Our little test extended
  10. 13:39Data Driven Testing - Example
  11. 14:09Test Data
  12. 14:44Implementation
  13. 16:01Benefits of data-driven testing
  14. 17:16GUI Tesing
  15. 18:27Keyboard entry simulation
  16. 21:11Mouse simulation
  17. 22:34Canned events
  18. 25:15Expect Fails
  19. 27:36Skipping
  20. 28:20Verbose reporting
  21. 31:45QSignalSpy example
  22. 33:56QTestEventLoop example
  23. 35:26Sleeping and waiting
  24. 36:20Command line arguments
  25. 44:31The Tools
  26. 46:13Typical Problem
  27. 50:12Mudflap output
  28. 51:47Uninitialized Memory
  29. 52:37Summary
~/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.