-
-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix "flaky" unit-tests #1072
base: main
Are you sure you want to change the base?
Fix "flaky" unit-tests #1072
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1072 +/- ##
===========================================
- Coverage 35.87% 23.93% -11.95%
===========================================
Files 127 124 -3
Lines 7492 7016 -476
===========================================
- Hits 2688 1679 -1009
- Misses 4804 5337 +533 ☔ View full report in Codecov by Sentry. |
CI is red! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense, indeed
CI to be fixed before merging, obviously |
Fixes: #1071
After double checking our build issues, I realised that some unit-test results, are heavily dependent on User Defaults, which is a key/value storage by Apple, which is persisted across sessions.
By running the same Unit-tests several times (repeatedly without building) some of them might fail.
Proposed solution: