~/talk

How to Write Tests in 2021

TalkinPolishat 4Developers 2021 · 2021-05-24..05-27· [testing, java]
links:none on file
slides:none on file

Advocates moving to JUnit 5 and AssertJ, demonstrating AssertJ’s fluent API and assertAll soft assertions to reveal multiple failures together. Covers mutation testing with PIT to detect weak tests, using Awaitility (Kotlin DSL) and a Java time agent to freeze/shift time for deterministic tests, WireMock-style stubs for integration testing, snapshot tests to lock object graphs, and concrete configuration tips for clearer failure messages.

AI-written summary · about

  1. 0:00Introduction
  2. 3:40Contract testing and hashCode
  3. 6:51Time and time zones
  4. 9:18Test naming and docs
  5. 12:27Assertions and error messages
  6. 16:38Soft assertions benefits
  7. 19:49Snapshot tests and refactoring
  8. 23:00Test frameworks evolution
  9. 26:12Test docs in CI/CD
  10. 28:21Property-based testing
  11. 31:51Mutation testing tools
  12. 33:15Integration vs unit tests
  13. 35:42Flaky test detection
  14. 37:45Architecture and config tests
  15. 40:17Performance tests and profiling
  16. 42:46Code analysis tools
  17. 44:31Summary
~/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.