{"id":13511837,"url":"https://github.com/spockframework/spock","last_synced_at":"2025-05-15T00:05:13.204Z","repository":{"id":1230269,"uuid":"1161862","full_name":"spockframework/spock","owner":"spockframework","description":"The Enterprise-ready testing and specification framework.","archived":false,"fork":false,"pushed_at":"2025-05-06T17:21:46.000Z","size":34509,"stargazers_count":3590,"open_issues_count":213,"forks_count":469,"subscribers_count":131,"default_branch":"master","last_synced_at":"2025-05-07T23:35:43.561Z","etag":null,"topics":["bdd-style-testing-framework","groovy","java","spock-framework","testing"],"latest_commit_sha":null,"homepage":"https://spockframework.org","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"bigkevmcd/erlfernet","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/spockframework.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":"CONTRIBUTING.adoc","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2010-12-12T19:02:34.000Z","updated_at":"2025-05-07T14:18:56.000Z","dependencies_parsed_at":"2023-11-12T13:22:30.198Z","dependency_job_id":"89dc6d33-193a-4d57-9c21-940a9fa76450","html_url":"https://github.com/spockframework/spock","commit_stats":{"total_commits":2716,"total_committers":131,"mean_commits":"20.732824427480917","dds":"0.49337260677466865","last_synced_commit":"a6030ab16741724ffd97f6741073baa7cfd0a200"},"previous_names":[],"tags_count":49,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spockframework%2Fspock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spockframework%2Fspock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spockframework%2Fspock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spockframework%2Fspock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spockframework","download_url":"https://codeload.github.com/spockframework/spock/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254249199,"owners_count":22039029,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bdd-style-testing-framework","groovy","java","spock-framework","testing"],"created_at":"2024-08-01T03:01:13.224Z","updated_at":"2025-05-15T00:05:13.132Z","avatar_url":"https://github.com/spockframework.png","language":"Java","readme":":spock-release-version: 2.4-M6\n:spock-release-date: 2025-04-15\n:spock-snapshot-version: 2.4\n\nhttps://github.com/spockframework/spock/blob/master/LICENSE[image:https://img.shields.io/badge/License-Apache%202.0-blue.svg[License]]\nhttps://search.maven.org/search?q=g:org.spockframework[image:https://img.shields.io/maven-central/v/org.spockframework/spock-core.svg?label=Maven%20Central[Maven\nCentral]]\nhttps://github.com/spockframework/spock/actions/workflows/release.yaml[image:https://img.shields.io/github/actions/workflow/status/spockframework/spock/release.yaml?branch=master[GitHub\nWorkflow Status (branch)]]\nhttps://jitpack.io/#org.spockframework/spock[image:https://jitpack.io/v/org.spockframework/spock.svg[Jitpack]]\nhttps://codecov.io/gh/spockframework/spock[image:https://codecov.io/gh/spockframework/spock/branch/master/graph/badge.svg[Codecov]]\nhttps://gitter.im/spockframework/spock?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge[image:https://badges.gitter.im/spockframework/spock.svg[Gitter]]\nhttps://ge.spockframework.org/scans[image:https://img.shields.io/badge/Revved%20up%20by-Develocity-06A0CE?logo=Gradle\u0026labelColor=02303A[Revved\nup by Develocity]]\n\nimage::docs/images/spock-main-logo.png[width=100px,float=right]\n\n== Spock Framework\n\nSpock is a BDD-style developer testing and specification framework for\nJava and https://groovy-lang.org/[Groovy] applications.To learn more\nabout Spock, visit\nhttps://spockframework.org[https://spockframework.org].To run a sample\nspec in your browser use the\nhttps://groovyconsole.dev/[Groovy Web Console].\n\n=== Latest Versions\n\n* The latest 2.x release version is *{spock-release-version}* ({spock-release-version}-groovy-2.5,\n{spock-release-version}-groovy-3.0, {spock-release-version}-groovy-4.0), released on {spock-release-date}.\n* The current development version is *{spock-snapshot-version}-SNAPSHOT*\n({spock-snapshot-version}-groovy-2.5-SNAPSHOT, {spock-snapshot-version}-groovy-3.0-SNAPSHOT, , {spock-snapshot-version}-groovy-4.0-SNAPSHOT).\n\n*NOTE:* Spock 2.x is based on the JUnit 5 Platform and require Java\n8+/groovy-2.5+ (Groovy 3.0 or 4.0 is recommended, especially in projects using\nJava 12+).\n\nReleases are available from\nhttps://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.spockframework%22[Maven\nCentral]. Development snapshots are available from\nhttps://oss.sonatype.org/content/repositories/snapshots/org/spockframework/[Sonatype\nOSS].\n\n==== Ad-Hoc Intermediate Releases\n\nFor intermediate stable builds we recommend to use\nhttps://jitpack.io/#org.spockframework/spock[Jitpack] (go here for\ninstructions):\n\n. Add https://jitpack.io[https://jitpack.io] as a repository\n. Use `org.spockframework.spock` as `groupId` and the normal\n`artifact-id`\n\n[source,groovy,subs=\"attributes\"]\n----\nrepositories {\n    // ...\n    maven { url 'https://jitpack.io' }\n}\n\ndependencies {\n    testImplementation 'org.spockframework.spock:spock-core:spock-{spock-release-version}'\n    testImplementation 'org.spockframework.spock:spock-spring:spock-{spock-release-version}'\n}\n----\n\n[start=3]\n. For intermediate releases you can also use the commit-hash as version,\ne.g. compile `com.github.spockframework.spock:spock-core:d91bf785a1`\n\n=== Modules\n\n* spock-core -- Core framework. This is the only mandatory module.\n* spock-specs -- Specifications for spock-core, implemented using Spock.\nNot required for using Spock.\n* spock-spring -- Integration with the\nhttps://docs.spring.io/spring/docs/4.1.5.RELEASE/spring-framework-reference/html/testing.html#testcontext-framework[Spring\nTestContext Framework].\n* spock-tapestry -- Integration with the\nhttps://tapestry.apache.org/[Tapestry 5] IoC container.\n* spock-guice -- Integration with https://github.com/google/guice[Guice]\n2/3.\n* spock-unitils -- Integration with http://www.unitils.org/[Unitils].\n\n=== Building\n\n==== Prerequisites\n\nSpock needs both a JDK 8 and JDK 17+ installed.\n\n* JDK 8 is required to compile Spock via toolchains (automatic download is disabled).\n* The gradle build itself requires at least JDK 17 to run.\n\nJDK locations must be made known to toolchains via `JDK\u003cversion\u003e=\u003cPATH\u003e` environment\nvariable, e.g., `JDK8=/path/to/jdk8`.\n\n==== Supported versions\n\nSpock is supported for Java version 8+.\n\nSpock is supported for Groovy versions 2.5, 3.0, and 4.0.\n\nThe tests are testing Spock with the specific versions (variants) of\nGroovy and Java. Default Groovy version is 2.5.\n\nThe Groovy 3.0 and 4.0 variant should pass on all supported JDK versions,\nGroovy 2.5 does not work with Java 17+:\n\n....\n./gradlew build\n....\n\nTo build a specific variant of Spock, use the variant name as a parameter\n\n....\n./gradlew build -Dvariant=4.0\n....\n\nTo test against a specific Java version, use the java version name as a parameter, the path to the Java version must be set via an environment variable `JDK\u003cversion\u003e=\u003cPATH\u003e`.\nOf course, this can combined with the variant selection from above.\n\n....\n./gradlew build -DjavaVersion=17\n....\n\n(Windows: `gradlew build`). All build dependencies, including the\nhttps://www.gradle.org[build tool] itself, will be downloaded\nautomatically (unless already present).\n\n=== Contributing\n\nContributions are welcome! Please see the\nhttps://github.com/spockframework/spock/blob/master/CONTRIBUTING.adoc[contributing\npage] for detailed instructions.\n\n=== Support\n\nIf you have any comments or questions, please direct them to the\nhttps://github.com/spockframework/spock/discussions[user forum]. All\nfeedback is appreciated!\n\n=== Java 9 Module Names\n\nAll published jars (beginning with Spock 1.2) will contain\nAutomatic-Module-Name manifest attribute. This allows for Spock to be\nused in a Java 9 Module Path.\n\n* spock-core -- `org.spockframework.core`\n* spock-spring -- `org.spockframework.spring`\n* spock-tapestry -- `org.spockframework.tapestry`\n* spock-guice -- `org.spockframework.guice`\n* spock-unitils -- `org.spockframework.unitils`\n\nSo module authors can use well known module names for the spock modules,\ne.g. something like this:\n\n....\nopen module foo.bar {\n  requires org.spockframework.core;\n  requires org.spockframework.spring;\n}\n....\n\n=== Logo\n\nThe Spock Logo, created by Ayşe Altınsoy (@AltinsoyAyse), is\nmanaged in the https://github.com/spockframework/spock-logo[spock-logo\nrepository].\n\n=== Links\n\n* Spock Homepage -- https://spockframework.org[https://spockframework.org]\n* Groovy Web Console -- https://groovyconsole.dev/[https://groovyconsole.dev/]\n* GitHub Organization -- https://github.com/spockframework[https://github.com/spockframework]\n* Reference Documentation -- https://docs.spockframework.org[https://docs.spockframework.org]\n* User Forum -- https://github.com/spockframework/spock/discussions[https://github.com/spockframework/spock/discussions]\n* Chat -- https://gitter.im/spockframework/spock[https://gitter.im/spockframework/spock]\n* Stack Overflow -- https://stackoverflow.com/questions/tagged/spock[https://stackoverflow.com/questions/tagged/spock]\n* Issue Tracker -- https://github.com/spockframework/spock/issues[https://github.com/spockframework/spock/issues]\n* Spock Example Project -- https://github.com/spockframework/spock-example[https://github.com/spockframework/spock-example]\n* X (Twitter) -- https://twitter.com/SpockFramework[https://twitter.com/SpockFramework]\n* Mastodon -- https://fosstodon.org/@spockframework[https://fosstodon.org/@spockframework]\n* Bluesky -- https://bsky.app/profile/spockframework.org[https://bsky.app/profile/spockframework.org]\n\n🖖 Live Long And Prosper!\n\nThe Spock Framework Team\n","funding_links":[],"categories":["Java","Testing","自动化测试","测试","IV. Testing","Tools"],"sub_categories":["测试框架","1. Testing","Mesh networks","Java"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspockframework%2Fspock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspockframework%2Fspock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspockframework%2Fspock/lists"}