{"action":"opened","issue":{"url":"https://api.github.com/repos/pester/Pester/issues/1161","repository_url":"https://api.github.com/repos/pester/Pester","labels_url":"https://api.github.com/repos/pester/Pester/issues/1161/labels{/name}","comments_url":"https://api.github.com/repos/pester/Pester/issues/1161/comments","events_url":"https://api.github.com/repos/pester/Pester/issues/1161/events","html_url":"https://github.com/pester/Pester/issues/1161","id":390335652,"node_id":"MDU6SXNzdWUzOTAzMzU2NTI=","number":1161,"title":"Feature: Add switch to Invoke-Pester to automatically re-run failed tests","user":{"login":"SteveL-MSFT","id":11859881,"node_id":"MDQ6VXNlcjExODU5ODgx","avatar_url":"https://avatars1.githubusercontent.com/u/11859881?v=4","gravatar_id":"","url":"https://api.github.com/users/SteveL-MSFT","html_url":"https://github.com/SteveL-MSFT","followers_url":"https://api.github.com/users/SteveL-MSFT/followers","following_url":"https://api.github.com/users/SteveL-MSFT/following{/other_user}","gists_url":"https://api.github.com/users/SteveL-MSFT/gists{/gist_id}","starred_url":"https://api.github.com/users/SteveL-MSFT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SteveL-MSFT/subscriptions","organizations_url":"https://api.github.com/users/SteveL-MSFT/orgs","repos_url":"https://api.github.com/users/SteveL-MSFT/repos","events_url":"https://api.github.com/users/SteveL-MSFT/events{/privacy}","received_events_url":"https://api.github.com/users/SteveL-MSFT/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-12T17:41:26Z","updated_at":"2018-12-12T17:41:26Z","closed_at":null,"author_association":"NONE","body":"## 1. General summary of the issue\r\n\r\nTo help identify flaky tests (tests that fail sometimes inconsistently rather than failing consistently), it would help to have Pester have opt-in ability to rerun failed tests (as it's being executed).  Need a way to indicate the test failed or passed on the rerun so that the test gets fixed to be predictable and consistent.\r\n\r\n## 2. Describe Your Environment\r\n\r\nPester version     : 4.4.0 /Users/steve/.local/share/powershell/Modules/Pester/4.4.0/Pester.psd1\r\nPowerShell version : 6.2.0-preview.2\r\nOS version         : Unix 18.2.0.0\r\n\r\n## 5. Possible Solution\r\n\r\nPerhaps add a `-RerunFailedTests` parameter to `Invoke-Pester` that accepts a `uint` on number of times to rerun.  Certainly this requires test cases to be idempotent which is a best practice anyways.  Currently, one would have to rerun the entire test script which is not optimal if only 1 test case out of many fails on occasion."}}
{"actor":{"display_login":"SteveL-MSFT"}}