-
-
Notifications
You must be signed in to change notification settings - Fork 6
test: Improve test failure messages for isWritable #106
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
Conversation
Slightly improve test failure messages for CacheAdvanceTests when the expect fails when checking isWritable, so it's easier to know why a test failed in CI.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #106 +/- ##
=======================================
Coverage 99.05% 99.05%
=======================================
Files 8 8
Lines 529 529
=======================================
Hits 524 524
Misses 5 5 🚀 New features to boost your workflow:
|
dfed
left a comment
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.
I'm not convinced this is necessary since the test name is quite clear and #expect does a great job of printing the expectation when it fails, but I don't see harm here.
At a minimum: if we're adding comments, I'd prefer the comments to explain the why rather than the what, since per the above #expect already prints what went wrong on failure. I've left suggestions to that effect.
Co-authored-by: Dan Federman <[email protected]>
Co-authored-by: Dan Federman <[email protected]>
Co-authored-by: Dan Federman <[email protected]>
Co-authored-by: Dan Federman <[email protected]>
Replace guard let and XCTFail with XCTUnwrap to simplify test_performance_append_fillableCache slightly.
Yes, it's not really necessary. I was looking at the code and stumbled across it. It's a very minor improvement. It previously failed with Now it fails with I think that's a slight improvement. Thanks for your input. |
|
CI job failed due to:
I have an issue filed with Github Actions about this. Started this week as far as I can tell. Just re-ran the job and it's good to go. Sorry for the noise there.
I agree! Though worth looking at the full failure message context which includes the test name: Makes me realize that my use of Merging your improvement, but also filing a note to self to improve these test variable names. |
|
We also see these failures on Sentry-Cocoa. I also commented on GH actions actions/runner-images#12948 (comment) |
I would say it has low prio 😄. I guess there are more important things to improve. |
Slightly improve test failure messages for CacheAdvanceTests when the expect fails when checking isWritable, so it's easier to know why a test failed in CI.