{"id":20490870,"url":"https://github.com/osoco/grails-spock-env-extensions","last_synced_at":"2025-06-12T14:08:47.909Z","repository":{"id":1584535,"uuid":"2076514","full_name":"osoco/grails-spock-env-extensions","owner":"osoco","description":null,"archived":false,"fork":false,"pushed_at":"2013-10-11T12:27:55.000Z","size":124,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-05T17:34:39.731Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Groovy","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/osoco.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-07-20T06:33:30.000Z","updated_at":"2013-10-11T12:27:57.000Z","dependencies_parsed_at":"2022-08-23T16:00:41.241Z","dependency_job_id":null,"html_url":"https://github.com/osoco/grails-spock-env-extensions","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/osoco/grails-spock-env-extensions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osoco%2Fgrails-spock-env-extensions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osoco%2Fgrails-spock-env-extensions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osoco%2Fgrails-spock-env-extensions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osoco%2Fgrails-spock-env-extensions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/osoco","download_url":"https://codeload.github.com/osoco/grails-spock-env-extensions/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osoco%2Fgrails-spock-env-extensions/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259479593,"owners_count":22864362,"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":[],"created_at":"2024-11-15T17:18:49.750Z","updated_at":"2025-06-12T14:08:47.885Z","avatar_url":"https://github.com/osoco.png","language":"Groovy","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Introduction\n\nThis plugin provides [Spock](http://spockframework.org/) extensions that allow specification and feature method inclusion and exclusion depending on the Grails execution environment.\n\n# Usage\n```groovy\nclass SingleFeatureMethodsExecutedAndIgnoredSpec extends Specification {\n\n    @ExecuteForEnvironment(['test_integration', 'test_performance'])\n    def \"executes a feature method only in the given environments\"() {\n        // ...    \n    }\n\n    @IgnoreForEnvironment(['test_integration', 'test_performance'])\n    def \"ignores a feature method only in the given environments\"() {\n        // ...\n    }\n}\n\n\n@ExecuteForEnvironment(['test_integration', 'test_performance'])\nclass TheWholeSpecExecutedSpec extends Specification {\n\n    // all feature methods will be executed only in the given environments\n\n}\n\n\n@IgnoreForEnvironment(['test_integration', 'test_performance'])\nclass TheWholeSpecIgnoredSpec extends Specification {\n\n    // all feature methods will be ignored only in the given environments\n\n}\n```\n\nNote that you have to specify environment names as ```String``` and not as ```grails.utils.Environment``` constants. The reason is that we crafted these extensions for our custom environments that are simply described as strings.\n\n# Contributors\n*  [Marcin Gryszko](http://github.com/mgryszko/)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosoco%2Fgrails-spock-env-extensions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fosoco%2Fgrails-spock-env-extensions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosoco%2Fgrails-spock-env-extensions/lists"}