Skip to content

The Enterprise-ready testing and specification framework.

License

Notifications You must be signed in to change notification settings

BurkHufnagel/spock

This branch is 3 commits ahead of, 794 commits behind spockframework/spock:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a24f4ce · Jan 12, 2020
Oct 18, 2018
Aug 23, 2017
Oct 31, 2019
Feb 5, 2013
Feb 28, 2015
Jan 12, 2020
Oct 31, 2019
Oct 7, 2018
Nov 29, 2018
Jan 12, 2020
Oct 31, 2019
Nov 18, 2018
Oct 31, 2019
Jan 12, 2020
Oct 31, 2019
Feb 26, 2019
Oct 31, 2019
Oct 31, 2019
Oct 31, 2019
May 17, 2017
Oct 31, 2019
Oct 31, 2019
Jun 30, 2018
Feb 18, 2009
May 26, 2010
Jan 12, 2020
Jun 28, 2018
Dec 31, 2019
Jun 28, 2018
Oct 31, 2019
Oct 31, 2019
Oct 31, 2019

Repository files navigation

License Maven Central Linux Build Status Windows Build Status CircleCI branch Jitpack Codecov Gitter

Spock Framework

Spock is a BDD-style developer testing and specification framework for Java and Groovy applications. To learn more about Spock, visit http://spockframework.org. To run a sample spec in your browser, go to http://webconsole.spockframework.org.

Latest Versions

  • The latest 1.x release version is 1.3 (1.3-groovy-2.4, 1.3-groovy-2.5), released on 2019-01-22.
  • The latest 2.0 release version is 2.0-M1 (2.0-M1-groovy-2.5), released on 2019-12-31.
  • The current development version is 2.0-SNAPSHOT (2.0-groovy-2.5-SNAPSHOT).

NOTE: Spock 1.3 is the last release for 1.x based on JUnit 4. Spock 2.0 is based on the JUnit 5 Platform and require Java 8/groovy-2.5

Releases are available from Maven Central. Development snapshots are available from Sonatype OSS.

Ad-Hoc Intermediate Releases

For intermediate stable builds we recommend to use Jitpack (go here for instructions):

  1. Add https://jitpack.io as a respository
  2. Use org.spockframework.spock as groupId and the normal artifact-id
repositories {
    // ...
    maven { url 'https://jitpack.io' }
}

dependencies {
        compile 'org.spockframework.spock:spock-core:spock-1.3'
        compile 'org.spockframework.spock:spock-spring:spock-1.3'
}
  1. For intermediate releases you can also use the commit-hash as version, e.g. compile com.github.spockframework.spock:spock-core:d91bf785a1

Modules

  • spock-core -- Core framework. This is the only mandatory module.
  • spock-specs -- Specifications for spock-core, implemented using Spock. Not required for using Spock.
  • spock-spring -- Integration with the Spring TestContext Framework.
  • spock-tapestry -- Integration with the Tapestry 5 IoC container.
  • spock-guice -- Integration with Guice 2/3.
  • spock-unitils -- Integration with Unitils.
  • spock-report -- Interactive, business-friendly HTML reports.

Building

Supported versions

Spock is supported for Java version 7, and 8 (with Groovy 2.5 Java 9+ are supported as well).

Spock is supported for Groovy version 2.4+

The tests are testing spock with a specific versions (variants) of groovy. Default is groovy version 2.4

The groovy 2.4 and 2.5 variant should pass on all supported JDK versions:

./gradlew clean build

(Windows: gradlew clean build). All build dependencies, including the build tool itself, will be downloaded automatically (unless already present).

Contributing

Contributions are welcome! Please see the contributing page for detailed instructions.

Support

If you have any comments or questions, please direct them to the user forum. All feedback is appreciated!

Java 9 Module Names

All published jars (beginning with Spock 1.2) will contain Automatic-Module-Name manifest attribute. This allows for Spock to be used in a Java 9 Module Path.

  • spock-core -- org.spockframework.core
  • spock-spring -- org.spockframework.spring
  • spock-tapestry -- org.spockframework.tapestry
  • spock-guice -- org.spockframework.guice
  • spock-unitils -- org.spockframework.unitils

So module authors can use well known module names for the spock modules, e.g. something like this:

open module foo.bar {
  requires org.spockframework.core;
  requires org.spockframework.spring;
}

Links

Live Long And Prosper!

The Spock Framework Team

About

The Enterprise-ready testing and specification framework.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 61.3%
  • Groovy 36.3%
  • XSLT 2.4%