|
Project Information
Members
Featured
Downloads
Wiki pages
Links
|
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. class HelloSpock extends spock.lang.Specification {
def "length of Spock's and his friends' names"() {
expect:
name.size() == length
where:
name | length
"Spock" | 5
"Kirk" | 4
"Scotty" | 6
}
} Run this example in Spock Web Console Read ten reasons why Spock is for you, see more examples, learn how to write a specification, or get started right away! News
Join us for Smarter Testing With Spock and Next Level Spock.
Thanks for coming and the great questions! Slides and code are available from https://github.com/spockframework/spock-ggnyc-2011.
The source code repository has moved to https://github.com/spockframework/spock. The Google Code Subversion repository won't see any further updates. All other infrastructure (issue tracker, forum, wiki) remains at Google (Code).
This release brings major improvements like deep integration with Hamcrest and dynamic reordering of test execution order to provide faster feedback. For more information on what's new, see the official release announcement. Also read ImportantChanges.
Spock is back on tour! Join me for my talk at SpringOne2GX. More infos here.
We have started to list companies and projects which are known to use Spock here. If your name belongs on that list, please leave us a note!
To learn more about this release, read the official announcement.
The official Spock Blog has opened its doors, starting with a mini-series about new features in the upcoming 0.4 release.
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! SupportersThanks to JetBrains for providing IDEA and TeamCity licenses. 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.
|