-
Notifications
You must be signed in to change notification settings - Fork 9.7k
[camera]skip app delegate during unit test #4729
[camera]skip app delegate during unit test #4729
Conversation
99dda0b
to
5eac3c3
Compare
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat. If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
7cec964
to
59b4142
Compare
59b4142
to
a06696d
Compare
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.
LGTM
test-exempt: untestable (changes logic specifically for tests) |
I noticed that during unit tests there are some code in app delegate that eventually setup the FLTCam in background thread, which runs concurrently with normal unit tests in main thread, making breakpoint a bit confusing when debugging.
This PR skips unnecessary
didFinishLaunching
setups for unit tests.No version change: only affect Runner app's unit tests.
No unit tests: I don't think OCMock supports stubbing global functions. Just manually tested.
Pre-launch Checklist
dart format
.)[shared_preferences]
pubspec.yaml
with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.CHANGELOG.md
to add a description of the change, following repository CHANGELOG style.///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.