~/talk

Integration Testing from the Trenches

Talkat JavaDay Kharkiv 2016 · on Saturday, 2016-09-17· [testing]
slides:none on file

Argues that both unit tests and integration tests are mandatory, because units alone miss integration faults and full-system tests are too slow and fragile. Recommends separating suites (fast unit phase then slower integration phase), using Maven failsafe plugin and dedicated CI jobs (hourly/daily) for integration tests, using H2 in-memory database or per-developer Oracle schemas to avoid flakiness, faking web services with lightweight servers (Spark) or SoapUI APIs, and exercising Spring with MockMvc (@WebMvcTest), noting Spring Test rolls back by default and @Commit forces commits.

AI-written summary · about

  1. 0:00Introduction to testing
  2. 1:58Defining integration tests
  3. 4:28System under test scope
  4. 7:08The testing pyramid
  5. 8:33Common testing challenges
  6. 10:42Maven build lifecycle
  7. 14:00Infrastructure challenges
  8. 17:04Database testing strategies
  9. 22:11Mocking web services
  10. 27:21Best practices for tests
  11. 29:13Spring configuration
  12. 33:46Managing connections
  13. 36:41Spring transaction testing
  14. 40:16Spring Boot testing
  15. 47:47Q&A and final remarks
~/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.