Skip to content

[RUM-16486] Add viewUpdates integration tests#3000

Open
maxep wants to merge 8 commits into
feature/view-updatesfrom
maxep/RUM-16486/view-updates-integration-tests
Open

[RUM-16486] Add viewUpdates integration tests#3000
maxep wants to merge 8 commits into
feature/view-updatesfrom
maxep/RUM-16486/view-updates-integration-tests

Conversation

@maxep

@maxep maxep commented Jun 17, 2026

Copy link
Copy Markdown
Member

What and why?

Add integration test coverage for the viewUpdates feature flag — both unit-level integration tests (_Tests variants) 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] = true to exercise the update-event model. Each _Tests variant 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

  • Feature or bugfix MUST have appropriate tests (unit, integration)
  • Make sure each commit and the PR mention the Issue number or JIRA reference
  • Add CHANGELOG entry for user facing changes
  • Add Objective-C interface for public APIs - see our guidelines (internal)
  • Run make api-surface when adding new APIs

@datadog-datadog-prod-us1

This comment has been minimized.

@maxep maxep force-pushed the maxep/RUM-16486/view-update-scope branch from 9d3c212 to 3af2eee Compare June 17, 2026 14:43
@maxep maxep force-pushed the maxep/RUM-16486/view-updates-integration-tests branch 2 times, most recently from f3ab320 to a5b075f Compare June 18, 2026 15:45
@maxep maxep force-pushed the maxep/RUM-16486/view-update-scope branch from dc556ab to d49ac55 Compare June 22, 2026 11:45
Base automatically changed from maxep/RUM-16486/view-update-scope to feature/view-updates June 30, 2026 12:19
@maxep maxep force-pushed the maxep/RUM-16486/view-updates-integration-tests branch from 82e01cc to e47b89f Compare June 30, 2026 12:21
maxep added 7 commits July 3, 2026 09:44
…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
@maxep maxep force-pushed the maxep/RUM-16486/view-updates-integration-tests branch from e47b89f to 54844da Compare July 3, 2026 07:44
@maxep maxep marked this pull request as ready for review July 3, 2026 15:27
@maxep maxep requested review from a team as code owners July 3, 2026 15:27
@maxep

maxep commented Jul 3, 2026

Copy link
Copy Markdown
Member Author

Sorry for such large addition: The integration tests are duplicated to cover the viewUpdates feature flag with the same scenario but different assertions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant