~/talk

Async Lifetime Tests with xUnit and AutoFixture

TalkinRussianat .NET Fest 2019 · 2019-10-25..10-26· [testing]

A presentation about testing a basic CQS-pattern service that handles command requests and publishes events describing state transitions, focusing on common testing strategies and their pros/cons. It demonstrates using AutoFixture to simplify tests by injecting parameters into test methods, discusses problems with initialization and cleanup in async tests, and shows a lightweight integration between xUnit and AutoFixture to handle those async lifetime issues.

AI-written summary · about

  1. 0:00Introduction
  2. 1:54Async test problems
  3. 6:09Demo service architecture
  4. 13:50Service structure and commands
  5. 15:20Traditional xUnit tests
  6. 21:26Bulky tests and setup
  7. 23:33AutoFixture for simpler tests
  8. 28:42Async init in AutoFixture
  9. 29:51Custom async context
  10. 33:30AutoFixture with custom context
  11. 38:19Readable tests with attributes
  12. 43:59Test building blocks
  13. 45:38Testing conflicts and parallelism
  14. 51:27Approach limits
  15. 52:11Q&A
~/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.