{"id":16932420,"url":"https://github.com/timyates/spock-ignoreuntil","last_synced_at":"2025-10-31T05:38:08.323Z","repository":{"id":57717896,"uuid":"182443023","full_name":"timyates/spock-ignoreuntil","owner":"timyates","description":"Adds an annotation to Spock tests to ignore a feature or specification until a given date up to 30 days in the future.","archived":false,"fork":false,"pushed_at":"2019-05-01T16:39:24.000Z","size":66,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-14T20:46:25.704Z","etag":null,"topics":["codenarc","groovy","ignore","java","jvm","spock","testing"],"latest_commit_sha":null,"homepage":"","language":"Groovy","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/timyates.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-20T18:49:11.000Z","updated_at":"2024-05-09T18:14:19.000Z","dependencies_parsed_at":"2022-08-24T11:10:22.687Z","dependency_job_id":null,"html_url":"https://github.com/timyates/spock-ignoreuntil","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timyates%2Fspock-ignoreuntil","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timyates%2Fspock-ignoreuntil/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timyates%2Fspock-ignoreuntil/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timyates%2Fspock-ignoreuntil/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timyates","download_url":"https://codeload.github.com/timyates/spock-ignoreuntil/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226517261,"owners_count":17645171,"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":["codenarc","groovy","ignore","java","jvm","spock","testing"],"created_at":"2024-10-13T20:46:29.436Z","updated_at":"2025-10-31T05:38:03.263Z","avatar_url":"https://github.com/timyates.png","language":"Groovy","funding_links":[],"categories":[],"sub_categories":[],"readme":"### IgnoreUntil\n\n- Built against spock 1.2-groovy-2.5 and Groovy 2.5.6\n\n![](https://d1gbp99v447ls8.cloudfront.net/wp-content/uploads/2018/05/01011328/under-rug.gif)\n\n#### Why?\n\n`@Ignore` is a handy annotation to get flaky things through CI, or to temporarily remove a test whilst some form of upgrade is performed.\nHowever, it is easily forgotten, and these ignored tests may be Ignored longer than was originally foreseen.\n\nThis library adds an new Spock annotation `@IgnoreUntil` that requires a UTC date up to 30 days in the future.\n\nAfter that time, by default, it will fail the build.  You can set an annotation parameter `failAfter = false` to instead start running this spec or feature again, as if it weren't annotated.\n\nInclude in your gradle build with:\n\n    testImplementation(\"com.bloidonia:spock-ignoreuntil:1.1\")\n\n#### Usage\n\nIgnore a specification\n\n    @IgnoreUntil(\"2019-05-15\")\n    class MyTests extends Specification\n        def \"I would fail\"() {\n            expect:\n            1 != 1\n        }\n    }\n\nIgnore a feature\n\n    class MyTests extends Specification\n        @IgnoreUntil(\"2019-05-15\")\n        def \"I would fail\"() {\n            expect:\n            1 != 1\n        }\n    }\n\n\u003e Dates may not be more than 30 days in the future.\n\nBy default, on expiry, the spec or feature will fail with an `IgnoreUntilExpiredException`.\n \nYou can change this to make it just run the spec or feature by passing the `failAfter = false` to the annotation, ie:\n\n    class MyTests extends Specification\n        @IgnoreUntil(value = \"2019-05-15\", failAfter = false)\n        def \"I will run after the 15th May\"() {\n            expect:\n            1 != 1\n        }\n    }\n\n#### Codenarc\n\n- Built against Codenarc 1.3\n\nIf you use this spock extension, you may want to ban the use of `@Ignore` from your build.\nIf you use Codenarc, you can do this by adding the following to your dependencies:\n\n    codenarc(\"com.bloidonia:spock-ignoreuntil:1.1\")\n\nAnd then this to your rules configuration file:\n\n    ruleset('rulesets/codenarc-ignore.xml')\n \nThen usage of any of the `@Ignore` annotations (Spock, JUnit, etc) will fail with a priority 3 error.\n\n#### Known issues\n\nIf you're using Gradle, and a test outcome is cached, then it will not be executed if none of the inputs to the tests have changed.\nThis means that a test may remain effectively ignored beyond the specified end date.\n\n### Releases\n\n1.1\n  - Change to using `value` in the annotation (so we don't need `date =` everywhere)\n  - Fix spelling in \"over 30 days\" error message\n\n1.0\n  - First version ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimyates%2Fspock-ignoreuntil","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimyates%2Fspock-ignoreuntil","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimyates%2Fspock-ignoreuntil/lists"}