在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
Spock FrameworkSpock is a BDD-style developer testing and specification framework for Java and Groovy applications.To learn more about Spock, visit https://spockframework.org. To run a sample spec in your browser, go tohttps://meetspock.appspot.com/. Latest Versions
NOTE: Spock 2.0 is based on the JUnit 5 Platform and require Java 8+/groovy-2.5+ (Groovy 3.0 is recommended, especially in projects using Java 12+). Releases are available from Maven Central.Development snapshots are available from Sonatype OSS. Ad-Hoc Intermediate ReleasesFor intermediate stable builds we recommend to use Jitpack (go here for instructions):
repositories { // ... maven { url 'https://jitpack.io' }}dependencies { testImplementation 'org.spockframework.spock:spock-core:spock-2.1-M2' testImplementation 'org.spockframework.spock:spock-spring:spock-2.1-M2'}
Modules
BuildingSupported versionsSpock is supported for Java version 8+. Spock is supported for Groovy versions 2.5 and 3.0. The tests are testing Spock with the specific versions (variants) of Groovy and Java. Default Groovy version is 2.5. The Groovy 2.5 and 3.0 variant should pass on all supported JDK versions: ./gradlew clean build (Windows: ContributingContributions are welcome! Please see the contributing page for detailed instructions. SupportIf you have any comments or questions, please direct them to the user forum.All feedback is appreciated! Java 9 Module NamesAll published jars (beginning with Spock 1.2) will contain Automatic-Module-Name manifest attribute. This allows for Spock to beused in a Java 9 Module Path.
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
|
请发表评论