~/talk

C++ Test-driven Development

Talkat CppCon 2014 · on Wednesday, 2014-09-10· at 15:15· Pascal· [testing]
slides:none on file

Concrete claim: test-driven cycles produce simpler, safer C++ and refactoring speeds up with IDE help. Demonstrations use Eclipse CDT and Cevelop tooling to auto-generate code from tests, run unit tests until green bar, and refactor with an extract function operation. Examples build a testable hello world, a switch class and an expression evaluator, showing failing tests turned green and a ~1:1 to 1:2 ratio of test to product lines. Tools include ostringstream substitution for IO testing.

AI-written summary · about

  1. 0:00Introduction
  2. 1:01Software quality crisis
  3. 2:25University to real-world testing
  4. 3:49Automated testing imperative
  5. 5:17Live refactoring: Untestable to testable
  6. 9:34Splitting code into components
  7. 13:17First unit test with failing assertion
  8. 16:11Fixing test and green bar
  9. 19:07Verify original functionality
  10. 20:37Effective unit testing principles
  11. 23:06Automated testing levels and structure
  12. 26:02TDD cycle and workflow
  13. 28:53Live TDD demo: Switch class
  14. 34:20Refactoring tests and new cases
  15. 38:21TDD demo takeaways
  16. 38:43TDD patterns and practices
  17. 40:30Refactoring as ongoing process
  18. 41:57Clean and habitable code
  19. 43:04Incremental code growth
  20. 44:50Pair programming and APIs
  21. 45:35Strategies for quick green bar
  22. 46:38Automating bug fixes
  23. 47:19Version control and breaks
  24. 48:21Next year’s testing talk
  25. 49:26Large test setups and performance
  26. 53:19Mock objects and slow tests
  27. 54:44Homework and closing
  28. 55:04Live demo: Test-first evaluator
  29. 59:41Summary and call to action
~/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.