You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a151e1b
Browse filesBrowse the repository at this point in the historyBrowse files
test(android): Run the UI tests with standalone app start tracing on
Instead of turning the new default off for all UI tests, MockRelay keeps
app start transactions apart. They don't count as expected requests and
don't use up custom responses, since whether a headless app start is sent
depends on the process importance. Tests that launch an Activity assert
exactly one app start transaction.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: sentry-android-integration-tests/sentry-uitest-android/src/androidTest/java/io/sentry/uitest/android/AutomaticSpansTest.kt
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,7 @@ class AutomaticSpansTest : BaseUiTest() {
41
41
activity.moveToState(Lifecycle.State.DESTROYED)
42
42
43
43
relay.assert {
44
+
assertAppStartTransaction()
44
45
assertFirstEnvelope {
45
46
val transactionItem:SentryTransaction= it.assertTransaction()
46
47
assertTrue("TTID span missing") {
@@ -89,6 +90,7 @@ class AutomaticSpansTest : BaseUiTest() {
89
90
"Expected total frames ($totalFrames) to be higher than the sum of slow ($slowFrames) and frozen ($frozenFrames) frames.",
Copy file name to clipboardExpand all lines: sentry-android-integration-tests/sentry-uitest-android/src/androidTest/java/io/sentry/uitest/android/BaseUiTest.kt
-3Lines changed: 0 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -114,9 +114,6 @@ abstract class BaseUiTest {
114
114
// actually be sent.
115
115
// To avoid any interference between tests we can just disable them by default.
116
116
it.isEnableAutoSessionTracking =false
117
-
// Whichever test launches the first activity of the process would otherwise also get a
118
-
// standalone app start transaction, which these tests don't expect.
Copy file name to clipboardExpand all lines: sentry-android-integration-tests/sentry-uitest-android/src/androidTest/java/io/sentry/uitest/android/EnvelopeTests.kt
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -61,6 +61,7 @@ class EnvelopeTests : BaseUiTest() {
Copy file name to clipboardExpand all lines: sentry-android-integration-tests/sentry-uitest-android/src/androidTest/java/io/sentry/uitest/android/SdkInitTests.kt
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -74,6 +74,7 @@ class SdkInitTests : BaseUiTest() {
Copy file name to clipboardExpand all lines: sentry-android-integration-tests/sentry-uitest-android/src/androidTest/java/io/sentry/uitest/android/mockservers/MockRelay.kt
+15-1Lines changed: 15 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,9 @@ class MockRelay(
24
24
/** List of unasserted requests sent to the [envelopePath]. */
Copy file name to clipboardExpand all lines: sentry-android-integration-tests/sentry-uitest-android/src/androidTest/java/io/sentry/uitest/android/mockservers/RelayAsserter.kt
0 commit comments