-
Notifications
You must be signed in to change notification settings - Fork 225
Stronger lambda error #4771
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
Stronger lambda error #4771
Conversation
📱 Scan the QR code below to install the build (arm64 only) for this PR. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #4771 +/- ##
========================================
Coverage 80.40% 80.40%
========================================
Files 2143 2143
Lines 56766 56766
Branches 7119 7119
========================================
Hits 45644 45644
Misses 8685 8685
Partials 2437 2437 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Just my 2 cents here, but I still think the right solution would be to replace |
@jmartinesp you're 💯 right and this is probably something we will do at some point. Can you create a new issue (task) with that? In the mean time, the idea of this "quick fix" is to avoid losing time when writing tests, which happened to me a few days ago. |
// Instead exit the process to make sure the test fails. | ||
// The error will be: | ||
// "Could not stop all services." | ||
// In this case, but a breakpoint here and run the test in debug mode to identify which lambda is failing. |
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.
typo :
put a breakpoint
564a375
to
c02f6df
Compare
|
Content
Ensure that
lambdaError()
really breaks the test in all circumstances.It can happen that the thrown
Error
is caught by the code, and this is not something expected.Also there is a commit to harmonize how we create presenters to test them. I could have created a separate PR but this does not worth it I think.
Motivation and context
More accurate tests
Same code pattern for creating presenter under test.
Screenshots / GIFs
NA
Tests
Tested devices
Checklist