~/talk

DRY TDD with AutoFixture

Talkat NDC London 2021 · 2021-01-25..01-29· [testing, developer-experience]
links:none on file
slides:none on file

Shows using AutoFixture to remove test setup duplication by applying anonymous data, equivalent sets and a test data builder. Implements Conway’s Game of Life underpopulation rule with three TDD tests (compile fail, minimal green, then rule) and then replaces manual construction with AutoFixture customizations to create one alive solitary cell. Tests become smaller, decoupled from constructors, still pass, and allow changing the API (for example to params) without breaking the test suite.

AI-written summary · about

  1. 0:00Intro
  2. 2:24Premise
  3. 3:29Fixture
  4. 7:04Test Setup
  5. 8:32Unit Test Patterns
  6. 9:48Equivalent Sets
  7. 11:38Test Data Builder
  8. 13:10Conways Game of Life
  9. 15:59BDD Style Testing
  10. 17:38First Test
  11. 19:38Writing the Code
  12. 21:38Creating the Grid
  13. 23:03Compile
  14. 25:08Expressing
  15. 27:13Test
  16. 33:23Underpopulation
  17. 36:18Compilation Error
  18. 38:08Running the Test
  19. 39:43Refactoring Tests
  20. 42:08Testing
  21. 45:13Customization
  22. 50:28Conclusion
~/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.