test: add lifecycle and performance tests for PayPal Messages SDK#82
Draft
grablack wants to merge 3 commits intochore/fix-coverage-reportfrom
Draft
test: add lifecycle and performance tests for PayPal Messages SDK#82grablack wants to merge 3 commits intochore/fix-coverage-reportfrom
grablack wants to merge 3 commits intochore/fix-coverage-reportfrom
Conversation
- Introduced comprehensive lifecycle tests in `PayPalMessageLifecycleTest` to validate SDK behavior under various conditions, including activity destruction, state persistence, and memory pressure scenarios. - Added performance tests in `PayPalMessagePerformanceTest` to assess the SDK's efficiency on resource-constrained devices, ensuring quick view creation, configuration changes, and environment switching. - Ensured tests cover adaptability, affordability, and innovation pillars, maintaining performance standards across different configurations and usage patterns.
- Refactored `ModalFragment` to include a companion object with a `newInstance` factory method for creating instances with required parameters, ensuring proper argument handling during fragment recreation. - Updated related tests and usages across the codebase to utilize the new factory method, enhancing consistency and reducing potential errors in fragment initialization. - Added a new test class `ModalFragmentLifecycleTest` to validate lifecycle behavior and configuration handling of `ModalFragment`, addressing potential crashes and ensuring robust lifecycle management.
…ayPalMessageView - Updated `ModalFragmentLifecycleTest` to improve lifecycle validation, ensuring proper argument handling and fragment recreation under various scenarios. - Enhanced performance tests in `PayPalMessagePerformanceTest` to assess memory usage and configuration changes, ensuring efficiency on budget devices. - Added assertions to verify state persistence during rapid activity recreation and configuration changes under memory constraints, addressing potential performance degradation. - Improved logging for performance metrics to facilitate monitoring and optimization.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PayPalMessageLifecycleTestto validate SDK behavior under various conditions, including activity destruction, state persistence, and memory pressure scenarios.PayPalMessagePerformanceTestto assess the SDK's efficiency on resource-constrained devices, ensuring quick view creation, configuration changes, and environment switching.Description
Screenshots
Testing instructions