On the other extreme, Spock for Groovy actually on...
# spek
h
On the other extreme, Spock for Groovy actually only uses methods to organize single tests, and has blocks (
given:
,
when:
,
then:
) without any indentations/nesting using AST transformations. However this approach has restricted flexibility for setup and cleanup of fixtures, there are
setup()
and
where:
, but it is not as flexible as Spek's, RSpec's and Mocha's approach.