-
Notifications
You must be signed in to change notification settings - Fork 86
[PM-28540] Add BitwardenSharedMocks target #2183
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
base: main
Are you sure you want to change the base?
Conversation
|
Claude finished @matt-livefront's task —— View job Code Review: BitwardenSharedMocks TargetOverall Assessment: ✅ APPROVEThis PR successfully implements the 👍 Strengths
✅ Architecture ComplianceThe new
Reference: ✅ Code OrganizationThe target structure is clean and follows conventions:
Reference: ✅ Import StrategyThe testable import approach is appropriate:
Example: ✅ Bundle Finder PatternThe bundle finder was properly migrated:
Reference: ✅ Testing ImpactAll test targets properly configured:
Reference: ℹ️ Fixture File DeletionsThree fixture files were removed from
These duplicate fixtures already defined in
Reference: ✅ Build ConfigurationThe
Reference: ✅ Security ConsiderationsNo security implications identified:
📋 SummaryThis PR is ready to merge. It successfully adds the The approach of using testable imports instead of making internal types public is the right choice - it maintains proper encapsulation while enabling comprehensive testing. |
|
Great job! No new security vulnerabilities introduced in this pull request |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2183 +/- ##
==========================================
- Coverage 85.42% 84.15% -1.27%
==========================================
Files 1734 1982 +248
Lines 146203 161527 +15324
==========================================
+ Hits 124895 135935 +11040
- Misses 21308 25592 +4284 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
fedemkr
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.
Looks good, just one small question.
| - path: BitwardenShared/Sourcery/Generated | ||
| optional: true |
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 see that BitwardenShared/Sourcery/Generated/AutoMockable.generated.swift has been moved to the new BitwardenSharedMocks. However, this one BitwardenShared/Sourcery/Generated hasn't, is that intended?
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.
Do you know if there's any reason we need to explicitly include BitwardenShared/Sourcery/Generated? I think if there were any files in it, they would be picked up by the existing BitwardenShared path. We only need to let Xcode know that the BitwardenShared/Sourcery/Generated/AutoMockable.generated.swift file is optional, since it might not exist when the Xcode project is built by Xcodgen.

🎟️ Tracking
PM-28540
📔 Objective
Adds a
BitwardenSharedMockstarget containing the mocks and fixtures used within BitwardenShared.This adds consistency with how we've used
BitwardenKitMocksandAuthenticatorBridgeKitMocksand will make it easier to implement Xcodegen templates (#2153).BitwardenSharedMockscontains a lot of fixtures and mocks forinternaltypes within BitwardenShared. Rather than make these typespublic, I've used testable imports of the newBitwardenSharedMockstarget in tests.⏰ Reminders before review
🦮 Reviewer guidelines
:+1:) or similar for great changes:memo:) or ℹ️ (:information_source:) for notes or general info:question:) for questions:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion:art:) for suggestions / improvements:x:) or:warning:) for more significant problems or concerns needing attention:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt:pick:) for minor or nitpick changes