[RUM-16486] Add viewUpdates integration tests#3000
Open
maxep wants to merge 8 commits into
Open
Conversation
This comment has been minimized.
This comment has been minimized.
9d3c212 to
3af2eee
Compare
f3ab320 to
a5b075f
Compare
dc556ab to
d49ac55
Compare
Base automatically changed from
maxep/RUM-16486/view-update-scope
to
feature/view-updates
June 30, 2026 12:19
82e01cc to
e47b89f
Compare
…ates flag - Add AnonymousIdentifier_Tests, RUMAttributesIntegration_Tests, RUMSessionStartInForeground_Tests, RUMViewHitchesIntegration_Tests, and ViewLoadingMetrics_Tests — each mirrors its counterpart with featureFlags[.viewUpdates] = true and adapts assertions to the delta-event model (viewEvents[0] full + viewUpdateEvents[k] deltas) - Extend RUMSessionMatcher.View with viewUpdateEvents and latestUpdateValue - Fix View.durationNs and sessionEndTimestampNs to scan viewUpdateEvents newest-first for the last non-nil timeSpent (stop deltas may carry nil when timeSpent did not change between two same-timestamp events) - All 61 _Tests pass
…nded/assertViewWasEventuallyInactive for delta model
…rns_on_newline in RUMSessionMatcher
…nViewUpdatesScenarioTests
e47b89f to
54844da
Compare
Member
Author
|
Sorry for such large addition: The integration tests are duplicated to cover the |
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.
What and why?
Add integration test coverage for the
viewUpdatesfeature flag — both unit-level integration tests (_Testsvariants) and UITest scenarios — to validate that the update-event model works correctly end-to-end alongside the existing full-event model.How?
Mirror the existing RUM integration test suites with
featureFlags[.viewUpdates] = trueto exercise the update-event model. Each_Testsvariant runs the same scenarios as its baseline counterpart but asserts against a mix of full events (viewEvents) and update events (viewUpdateEvents). UITest scenarios are similarly duplicated to cover manual instrumentation and navigation controller flows under the flag.Review checklist
make api-surfacewhen adding new APIs