~/talk

What Mr. Spock would possibly say about modern unit testing

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

Compares Spock 1.0 (1.1 incoming) with JUnit/TestNG and shows concrete wins: given-when-then blocks replace comment scaffolding, rich assertions print collection diffs, and mocking/stubbing syntax is typically ~2x shorter and supports static methods and call-counts like 3 mock.method(_). Demonstrates data-driven tests with data tables and @Unroll* producing per-row reports, an old() helper for before/after comparisons, polling for async, and seamless JUnit runner integration so existing CI and report tools work. Notes JUnit remains dominant (≈2/3 of GitHub Java projects) and community-maintained status.

AI-written summary · about

  1. 0:00Introduction
  2. 3:40Current testing overview
  3. 9:49Why Spock is the future
  4. 13:03Spock test structure
  5. 20:09Test blocks and benefits
  6. 27:18Spock vs JUnit
  7. 32:00Mocking in Spock
  8. 35:56Async code testing
  9. 38:05Managing test suites
  10. 42:39Spock advantages
  11. 46:18When not to use Spock
  12. 47:43Getting started with Spock
~/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.