~/talk

Testing: Integration Tests - The good, bad and ugly

Talkat 4Developers 2020 · 2020-09-14..09-18· [testing]
links:none on file
slides:none on file

Argues for at least one test run against the real production component (for example testcontainers for Postgres or a real Kafka broker), keeping most integration tests fast with unique/random test data and cleanup, and avoiding brittle timing by avoid Thread.sleep and injecting a fixed Clock or using polling libraries (Awaitility/Spock). Use temporary queues and mock HTTP servers (WireMock) but add Pact contract tests between consumer and provider, and prefer targeted cleanup (delete by test id) so tests run in parallel.

AI-written summary · about

  1. 0:00Introduction to integration tests
  2. 2:36Test pyramid vs Test Trophy
  3. 6:13Characteristics of good tests
  4. 8:42Using production components in tests
  5. 11:08Unique and random test data
  6. 13:58Avoiding testing anti-patterns
  7. 15:45Integration test configuration
  8. 16:27Time dependency in tests
  9. 21:07Database testing strategies
  10. 26:48Messaging systems integration
  11. 30:38HTTP service testing
  12. 33:46Contract testing for APIs
  13. 35:54File system integration
  14. 40:31Caching in integration tests
  15. 42:39Summary and best practices
~/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.