My favorites | Sign in
Project Logo
                
Show all Featured downloads:
spock-example-0.3.zip
People details
Project owners:
  pniederw
Project committers:
spockbuild, ldaley

Spock is a testing and specification framework for Java and Groovy applications. What makes it stand out from the crowd is its beautiful and highly expressive specification language. Thanks to its JUnit runner, Spock is compatible with most IDEs, build tools, and continuous integration servers. Spock is inspired from JUnit, jMock, RSpec, Groovy, Scala, Vulcans, and other fascinating life forms.

@Speck
class HelloSpock {
    def "can you figure out what I'm up to?"() {
        expect:
        name.size() == size

        where:
        name << ["Kirk", "Spock", "Scotty"]
        size << [4, 5, 6]
    }
}

Read ten reasons why Spock is for you, see more examples, learn how to write a specification, or get started right away!


News

To learn more about this release, read the official announcement.
Many of you have asked for it, and finally we have it ready: a Spock plugin for Grails! The plugin blends seamlessly with the Grails environment and already supports unit, integration, and functional specifications. Get it from the Grails plugin repository. A non-snapshot version of the plugin will be released together with the next Spock release, which is just around the corner. Big thanks to Luke Daley for his fantastic work!
Spock now provides extensions for Guice, Spring's TestContext framework, and Tapestry IoC, thus making it much easier to write integration-level specifications. Available in the latest snapshot.
Spock Web Console, a close cousin of the popular Groovy Web Console, lets you view, edit, run, and even publish Spock specifications for others to see. It's all just one click away, so what are you waiting for?
On November 16th, I will present Spock at Devoxx, the largest Java-related IT conference in Europe. Hope to see you there! More information on the presentation is here.
On September 8th, I will do a Spock presentation for the Chicago Groovy User Group. Thanks to Bill Gloff for inviting me!
Following Hamlet D'Arcy's invitation, I presented Spock at today's Groovy Users Minnesota meeting. Running a two and a half hour web conference in the middle of the night was certainly a new experience, but all in all it went quite well. By the way, I'm always looking for opportunities to talk about Spock. If you are interested, let me know!
Read the official announcement here.
In the latest EAP release of IntelliJ IDEA 9, Spock specifications enjoy advanced JUnit features like running a single test method and rerunning failed test methods only. On the Eclipse front, the new Groovy Eclipse plugin (yet to be released) has successfully run its first Spock specification (screenshot).
Meanwhile, have a look at the new features, or try out the latest snapshot.
Here is the evidence.
A big thank you to Paul King, Dirk Koenig, and Neal Ford!
Spock releases are now available from http://repo1.maven.org. Snapshots continue to be available from http://m2repo.spockframework.org/snapshots.
Meet Spock! explains how Spock is different from other testing frameworks, and why it is worth a closer look.
Read the official announcement here.
In What's New in Groovy 1.6, Spock is mentioned as a testing tool along with easyb and Gmock. Thanks Guillaume!

Supporters

YourKit is kindly supporting open source projects with its full-featured Java Profiler. YourKit, LLC is the creator of innovative and intelligent tools for profiling Java and .NET applications. Take a look at YourKit's leading software products: YourKit Java Profiler and YourKit .NET Profiler.









Hosted by Google Code