~/talk

Getting maximum mileage from a minimal number of tests

Talkat NDC London 2026 · 2026-01-26..01-30· [testing]
links:none on file
slides:none on file

Shows how one automated end-to-end component test runs three executables in-memory so a single test covers the full happy path across API, event listener and outbox in ~1.6s. Uses Microsoft WebApplicationFactory, a testable Service Bus processor plus mocked senders, in-memory repos, and .NET’s FakeTimeProvider to advance clock and avoid long waits. Tests exercise Program.cs/startup and IoC, assert persisted domain events and outbox records, and can detect missing config or registration; example code is on the linked GitHub.

AI-written summary · about

  1. 0:00End-to-end component testing intro
  2. 6:54What are component tests
  3. 8:00Component tests in testing
  4. 9:25Component vs unit tests
  5. 10:29Component test framework
  6. 12:17Readable component tests
  7. 15:05Shared test fixture
  8. 17:10Application host factories
  9. 20:29Mocking Azure Service Bus
  10. 24:42Asserting Service Bus handling
  11. 26:50Simulating message routing
  12. 28:32Testing HTTP calls
  13. 29:34Mocking database
  14. 30:58Fake time providers
  15. 33:44Testable phases
  16. 38:42Full end-to-end test
  17. 43:42Debugging component tests
  18. 49:58Detecting missing IoC
  19. 50:42Testing missing config
  20. 51:47Unhappy paths in tests
  21. 52:30Component testing pros/cons
  22. 53:55Conclusion & Q&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.