~/talk

Unit Tests as a Specification

Talkat Java ON 2022 · 2022-10-17..10-20· [testing]
links:none on file
slides:none on file

Shows that Spock (Groovy on the JUnit platform, Gradle build) cuts boilerplate and produces BDD given-when-then specs that run as tests and export clickable HTML docs via Spock reports. Demonstrates on a coffee-machine project: readable parameterized tables, detailed failure diagnostics, built-in mocking/stubbing, and the pending feature workflow to ship specs before implementation. Claims about reduced code (~40%) and ~2k GitHub stars are backed by live runs and generated reports linking issues so it works end-to-end.

AI-written summary · about

  1. 0:00Introduction
  2. 7:58Speaker from Riga
  3. 8:40Unit tests essential
  4. 10:10Java testing history
  5. 13:43Spock framework revolution
  6. 18:17Spock benefits
  7. 24:51Live coding Spock basics
  8. 31:25Advanced Spock assertions
  9. 35:08BDD blocks in Spock
  10. 39:08Data-driven Spock tests
  11. 45:17Mocking in Spock
  12. 51:10Test doubles and matchers
  13. 52:13Tests as documentation
  14. 55:29Spock reports
  15. 1:00:10Conclusion and comparison
  16. 1:03:07Pending tests and conditions
  17. 1:08:50Q&A
~/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.