summaryrefslogtreecommitdiff
path: root/spec/lib/rspec_flaky
Commit message (Collapse)AuthorAgeFilesLines
* Ensure we set SUITE_FLAKY_RSPEC_REPORT_PATH to nil in RspecFlaky::Listener specRémy Coutable2017-10-061-0/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Add new RSpecFlaky::FlakyExamplesCollection and RSpecFlaky::Config classesRémy Coutable2017-10-063-1/+181
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Ensure RSpecFlaky doesn't automatically update flaky examplesRémy Coutable2017-10-042-82/+220
| | | | | | | | | | | | | | | | | | | | | Previously, instantiating a RspecFlaky::FlakyExample object would automatically update its first_flaky_at, last_flaky_at and last_flaky_job. That was wrong because we would overwrite every time the suite report with this false data. We now: - Get the suite report and only read from it - Write only the currently detected flaky examples in the report, so that the final report is only updated with flaky examples that were actually detected in each job. Before, job1 could overwrite the legit report from job2! - Write the newly detected flaky examples by rejecting the already tracked flaky specs instead of using another hash. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Use a new RspecFlakyListener to detect flaky specsRémy Coutable2017-08-113-0/+371
Signed-off-by: Rémy Coutable <remy@rymai.me>