~/talk

Speedup unit testing with the Spock framework

Talkat Devoxx Belgium 2017 · 2017-11-06..11-10· [testing, java]
name:Ben Ooms
links:none on file
slides:none on file

Claims Spock cuts boilerplate vs JUnit by using data-driven tables (inline or from files), Groovy-based specs with given/when/then blocks, and clearer failure reports that show inputs and expected vs actual so debugging is faster. Shows concrete examples: setup/cleanup fixtures, @Shared fields to avoid per-test reinitialization, explicit exception checks with messages, and JUnit runner integration so tests run on JVM build tools. Demos compile and produce readable, actionable failures.

AI-written summary · about

  1. 0:00Spock framework intro
  2. 1:09What is Spock
  3. 3:18Test structure
  4. 5:49Feature blocks
  5. 7:11Setting up and running Spock tests
  6. 9:05Handling exceptions
  7. 10:28Spock vs JUnit
  8. 12:17Expect and assertions
  9. 13:21Data-driven testing
  10. 14:23Test reporting
  11. 15:52Spock vs other tools
  12. 16:59Q&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.