Improve the integration test coverage for online vs offline comparisons.#6841
Merged
Improve the integration test coverage for online vs offline comparisons.#6841
Conversation
Contributor
📝 PRs merging into main branchOur main branch should always be in a releasable state. If you are working on a larger change, or if you don't want this change to see the light of the day just yet, consider using a feature branch first, and only merge into the main branch when the code complete and ready to be released. |
Collaborator
Generated by 🚫 Danger |
Collaborator
Coverage Report 1Affected Products
Test Logs |
Contributor
Test Results 186 files + 120 186 suites +120 4m 26s ⏱️ + 3m 8s Results for commit 8567041. ± Comparison against base commit 8af38c9. This pull request removes 552 and adds 1235 tests. Note that renamed tests count towards both.This pull request removes 1 skipped test and adds 16 skipped tests. Note that renamed tests count towards both. |
Collaborator
Size Report 1Affected ProductsNo changes between base commit (8af38c9) and merge commit (e53d241).Test Logs |
Collaborator
Startup Time Report 1Note: Layout is sometimes suboptimal due to limited formatting support on GitHub. Please check this report on GCS. Notes
Startup Times
|
ehsannas
added a commit
to firebase/firebase-ios-sdk
that referenced
this pull request
Apr 10, 2025
ehsannas
added a commit
to firebase/firebase-ios-sdk
that referenced
this pull request
Apr 10, 2025
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
This PR improves the way
checkOnlineAndOfflineResultsMatchtest util function was written.It does so by first pre-populating the cache with the entire collection, then performing the query from cache (this results in a full collection scan), then performing the query from the server, and then performing the query from cache again (this results in using
performQueryUsingRemoteKeys. It then ensures that all of these 3 results are the same and equal to the expected results.#no-changelog