-
Notifications
You must be signed in to change notification settings - Fork 29
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
chore: adr in code and junit5 parameterized tests (WPB-10396) #3288
Conversation
This reverts commit 6bcd8cf.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #3288 +/- ##
========================================
Coverage 44.53% 44.53%
========================================
Files 453 453
Lines 15328 15328
Branches 2561 2561
========================================
Hits 6827 6827
+ Misses 7784 7783 -1
- Partials 717 718 +1 see 1 file with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
Built wire-android-staging-compat-pr-3288.apk is available for download |
New ADR(s) in this PR 📚:Decision record template by Michael NygardThis is the template in Documenting architecture decisions - Michael Nygard. In each ADR file, write these sections: TitleStatusWhat is the status, such as proposed, accepted, rejected, deprecated, superseded, etc.? ContextWhat is the issue that we're seeing that is motivating this decision or change? DecisionWhat is the change that we're proposing and/or doing? ConsequencesWhat becomes easier or more difficult to do because of this change? 1. Record architecture decisionsDate: 2024-08-05 StatusAccepted ContextWe agreed in the past to use ADR's, but we lost track of it as we were using confluence to keep DecisionWe will use Architecture Decision Records in the code and as part of the review process. Consequences
2. Calling activity refactorDate: 2024-08-01 StatusAccepted ContextTo support a second incoming call we need to refactor the code so we can handle the ongoing content This is a retroactive decision record implemented DecisionCreate 2 separate activities, one for the Incoming/Outgoing calls and another for the ongoing call. The design and interaction will look like this: Consequences
3. Use parameterizable tests in JUnit5Date: 2024-08-05 StatusProposed ContextSometimes we need to write multiple tests for the same scenario, changing only the input values. DecisionWe will use parameterizable tests in JUnit5 to avoid writing multiple tests for the same scenario. Consequences
|
|
||
## Status | ||
|
||
Proposed |
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.
TODO: Change to Accepted when PR approved
Built wire-android-staging-compat-pr-3288.apk is available for download |
Built wire-android-dev-debug-pr-3288.apk is available for download |
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.
Amazing! 😍 looking forward for it
enum class TestParams(val input: OtherUser, val expected: String) { | ||
FEDERATED_USER(OTHER_USER.copy(userType = UserType.FEDERATED, handle = "handle"), "handle@domain"), | ||
REGULAR_USER(OTHER_USER.copy(userType = UserType.GUEST, handle = "handle"), "handle"), | ||
NO_HANDLE_USER(OTHER_USER.copy(userType = UserType.INTERNAL, handle = null), "") |
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.
😍
Built wire-android-staging-compat-pr-3288.apk is available for download |
Built wire-android-dev-debug-pr-3288.apk is available for download |
Quality Gate passedIssues Measures |
Built wire-android-staging-compat-pr-3288.apk is available for download |
Built wire-android-dev-debug-pr-3288.apk is available for download |
Ups 🫰🟨This PR is too big. Please try to break it up into smaller PRs. |
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.
❤️
PR Submission Checklist for internal contributors
The PR Title
SQPIT-764
The PR Description
What's new in this PR?
docs/adr/0003-introducing-junit5-parametrizable-tests.md
Issues
As part of the discussion in the last collective, this is the revamp ADRs effort, so we can have it in our review process and more important whenever we are including at least these 2 important categories:
Causes (Optional)
docs/adr
folder.Attachments (Optional)
https://wireapp.github.io/wire-android/
PR Post Submission Checklist for internal contributors (Optional)
PR Post Merge Checklist for internal contributors
References
feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764
.