~/talk

Testcontainers for Real Integration Tests [...]

TalkinFrenchat DevFest Toulouse 2018 · on Thursday, 2018-11-08· [testing]
slides:none on file

Shows using Testcontainers 1.1.10.1 with an Elasticsearch 6.4.3 Docker image to run real integration tests: start an ElasticsearchContainer, getMappedPort(...) and use client.info() to find the endpoint, then perform index/create/index document/search assertions and tear down the container. Also demonstrates falling back to a local Elasticsearch or Elastic Cloud endpoint to avoid repeated slow container starts, reporting that tests run reliably and reduce flakiness.

AI-written summary · about

  1. 0:00Elasticsearch integration tests
  2. 3:09Integration tests without containers
  3. 5:38Start Elasticsearch with Testcontainers
  4. 7:05Get Elasticsearch container address
  5. 9:35Optimize tests with local cluster
  6. 10:59Run tests on Elastic Cloud
  7. 13:57Conclusion
~/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.