~/talk

Testing strategy for your ASP.NET Core micro-service

Talkat NDC Oslo 2023 · 2023-05-22..05-26· [testing]
slides:none on file

Argues for a four‑layer strategy: unit tests for logic, integration tests that spin real databases in Docker and clean state between runs, service tests run with TestHost and fake external APIs via WireMock.net or MockServer, and a few targeted end‑to‑end or smoke tests only for business‑critical flows; recommends Pact for consumer‑driven contract checks across teams, warns about slow suites (examples of multi‑hour end‑to‑end runs), stresses deterministic, readable tests and automating setup/teardown so tests remain fast and reliable.

AI-written summary · about

  1. 0:00Intro
  2. 0:49The complexity of testing micro services
  3. 4:28Different types of tests
  4. 11:07ASP.NET Core microservice architecture
  5. 13:42Example: unit test
  6. 17:20Example: integration test
  7. 23:06Setting environments for integration tests
  8. 25:04Testing with cloud based services
  9. 28:24Testing in the Cloud vs. using emulators
  10. 29:49Service tests
  11. 38:47Using BDD Frameworks
  12. 50:58Summery: Testing micro services
~/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.