{"id":13880200,"url":"https://github.com/dblock/rspec-rerun","last_synced_at":"2025-04-05T03:09:33.016Z","repository":{"id":4282756,"uuid":"5412048","full_name":"dblock/rspec-rerun","owner":"dblock","description":"Re-run (retry) failed RSpec examples.","archived":false,"fork":false,"pushed_at":"2020-10-02T13:47:41.000Z","size":564,"stargazers_count":94,"open_issues_count":8,"forks_count":35,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-29T02:05:40.236Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dblock.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-08-14T11:46:12.000Z","updated_at":"2023-10-28T07:00:12.000Z","dependencies_parsed_at":"2022-08-30T00:40:37.838Z","dependency_job_id":null,"html_url":"https://github.com/dblock/rspec-rerun","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dblock%2Frspec-rerun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dblock%2Frspec-rerun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dblock%2Frspec-rerun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dblock%2Frspec-rerun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dblock","download_url":"https://codeload.github.com/dblock/rspec-rerun/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247280272,"owners_count":20912967,"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-08-06T08:02:51.741Z","updated_at":"2025-04-05T03:09:32.998Z","avatar_url":"https://github.com/dblock.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"![rspec-rerun](https://raw.github.com/dblock/rspec-rerun/master/rspec-rerun.png)\n\n[![Gem Version](http://img.shields.io/gem/v/rspec-rerun.svg)](http://badge.fury.io/rb/rspec-rerun)\n[![Build Status](http://img.shields.io/travis/dblock/rspec-rerun.svg)](https://travis-ci.org/dblock/rspec-rerun)\n[![Dependency Status](https://gemnasium.com/dblock/rspec-rerun.svg)](https://gemnasium.com/dblock/rspec-rerun)\n[![Code Climate](https://codeclimate.com/github/dblock/rspec-rerun.svg)](https://codeclimate.com/github/dblock/rspec-rerun)\n\n**rspec-rerun** reruns failed RSpec examples (for brittle tests). \n\nIt writes failed examples to the file `rspec.failures` and feeds these back to RSpec via `-e`.\n\nUsage\n-----\n(For RSpec 2 use version '~\u003e 0.3.1'. )\n\n``` ruby\n# Gemfile\ngroup :development, :test do\n  gem 'rspec-rerun'\nend\n```\n\n```ruby\n# Rakefile\nrequire 'rspec-rerun/tasks'\ntask default: 'rspec-rerun:spec'\n```\n\n```bash\necho rspec.failures \u003e\u003e .gitignore\n```\n\nRun `rake` or `rake rspec-rerun:spec`. Failed examples will be rerun automatically.\n\nParameters\n----------\n\nThe `rspec-rerun:spec` task accepts the following parameters:\n\n* `retry_count`: number of retries, defaults to 1\n\ne.g. `rake rspec-rerun:spec[3]`. ZSH users will want to try noglob or quote around the task name: `rake 'rspec-rerun:spec[3]'`.\n\n\nYou can set the following global environment variables:\n\n* `RSPEC_RERUN_RETRY_COUNT`: number of retries, defaults to the value of `retry_count` or 1\n* `RSPEC_RERUN_PATTERN`: spec file pattern, defaults to the value defined by `RSpec::Core::RakeTask`\n* `RSPEC_RERUN_TAG`: only execute the tag specified\n* `RSPEC_RERUN_VERBOSE`: if 'false', don't show the rspec command invoked by Rake\n\nHistory\n-------\n\nRerunning failed specs has been a long requested feature [#456](https://github.com/rspec/rspec-core/issues/456) in [RSpec](https://github.com/rspec/rspec-core/). A viable approach was suggested in [#596](https://github.com/rspec/rspec-core/pull/596). The infrastructure from that pull request was merged and released with rspec-core 2.11, which enabled re-running specs outside of RSpec, as described in [our blog post](http://artsy.github.com/blog/2012/05/15/how-to-organize-over-3000-rspec-specs-and-retry-test-failures/). This gem has evolved from it.\n\nContributing\n------------\n\nSee [CONTRIBUTING](CONTRIBUTING.md).\n\nCopyright and License\n---------------------\n\nMIT License, see [LICENSE](LICENSE.md) for details.\n\n(c) 2012-2015 [Artsy Inc.](http://artsy.github.com), [Daniel Doubrovkine](https://github.com/dblock) and [Contributors](https://github.com/dblock/rspec-rerun/blob/master/CHANGELOG.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdblock%2Frspec-rerun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdblock%2Frspec-rerun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdblock%2Frspec-rerun/lists"}