{"action":"created","issue":{"url":"https://api.github.com/repos/rspec/rspec-core/issues/795","repository_url":"https://api.github.com/repos/rspec/rspec-core","labels_url":"https://api.github.com/repos/rspec/rspec-core/issues/795/labels{/name}","comments_url":"https://api.github.com/repos/rspec/rspec-core/issues/795/comments","events_url":"https://api.github.com/repos/rspec/rspec-core/issues/795/events","html_url":"https://github.com/rspec/rspec-core/issues/795","id":11170721,"number":795,"title":"Command-line flag to run specs multiple times","user":{"login":"afeld","id":86842,"avatar_url":"https://avatars0.githubusercontent.com/u/86842?v=4","gravatar_id":"","url":"https://api.github.com/users/afeld","html_url":"https://github.com/afeld","followers_url":"https://api.github.com/users/afeld/followers","following_url":"https://api.github.com/users/afeld/following{/other_user}","gists_url":"https://api.github.com/users/afeld/gists{/gist_id}","starred_url":"https://api.github.com/users/afeld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afeld/subscriptions","organizations_url":"https://api.github.com/users/afeld/orgs","repos_url":"https://api.github.com/users/afeld/repos","events_url":"https://api.github.com/users/afeld/events{/privacy}","received_events_url":"https://api.github.com/users/afeld/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":23,"created_at":"2013-02-19T20:31:54Z","updated_at":"2018-02-22T21:44:15Z","closed_at":"2013-02-20T17:11:06Z","author_association":"NONE","body":"I have some integration tests that are failing inconsistently, and as I'm fixing them I'd love to be able to run specific specs multiple times to see which still fail intermittently.  Something like the following:\n\n```\n$ rspec -n 3 spec\n...\n  should pass consistently\n\nFinished in 43 seconds\n1 example, 1/3 failures\n```\n\nThoughts?\n"},"comment":{"url":"https://api.github.com/repos/rspec/rspec-core/issues/comments/367832553","html_url":"https://github.com/rspec/rspec-core/issues/795#issuecomment-367832553","issue_url":"https://api.github.com/repos/rspec/rspec-core/issues/795","id":367832553,"user":{"login":"JonRowe","id":162976,"avatar_url":"https://avatars1.githubusercontent.com/u/162976?v=4","gravatar_id":"","url":"https://api.github.com/users/JonRowe","html_url":"https://github.com/JonRowe","followers_url":"https://api.github.com/users/JonRowe/followers","following_url":"https://api.github.com/users/JonRowe/following{/other_user}","gists_url":"https://api.github.com/users/JonRowe/gists{/gist_id}","starred_url":"https://api.github.com/users/JonRowe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JonRowe/subscriptions","organizations_url":"https://api.github.com/users/JonRowe/orgs","repos_url":"https://api.github.com/users/JonRowe/repos","events_url":"https://api.github.com/users/JonRowe/events{/privacy}","received_events_url":"https://api.github.com/users/JonRowe/received_events","type":"User","site_admin":false},"created_at":"2018-02-22T21:44:15Z","updated_at":"2018-02-22T21:44:15Z","author_association":"OWNER","body":"If you're setting up your memory profiling code in around hooks it's also possible to run the examples as many times as you like.\r\n\r\n```Ruby\r\naround(:example) do |example|\r\n  MyMemoryProfiler.do\r\n    n.times { example.run }\r\n  end\r\nend\r\n```\r\n\r\nIf you want to run until failure something like:\r\n\r\n```Ruby\r\naround(:example) do |example|\r\n  failed = false\r\n  until failed\r\n    example.run rescue failed = true\r\n  end\r\n   # whatever logic you want to run to make it \"refail etc\"\r\nend\r\n```"}}
{"actor":{"display_login":"JonRowe"}}