Skip to content

Commit 70e2730

Browse files
committed
test: add missing native crash integration test for Android
1 parent 4bc0e6c commit 70e2730

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

integration-test/android.Tests.ps1

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,20 @@ Describe 'MAUI app' -ForEach @(
149149
$result.Envelopes() | Should -Not -AnyElementMatch "`"type`":`"System.\w+Exception`""
150150
}
151151

152+
It 'Native crash' {
153+
$result = Invoke-SentryServer {
154+
param([string]$url)
155+
InstallAndroidApp -Dsn $url
156+
RunAndroidApp -Dsn $url -TestArg "Native"
157+
RunAndroidApp -Dsn $url
158+
}
159+
160+
Dump-ServerErrors -Result $result
161+
$result.HasErrors() | Should -BeFalse
162+
$result.Envelopes() | Should -AnyElementMatch "`"type`":`"SIGILL`""
163+
$result.Envelopes() | Should -Not -AnyElementMatch "`"type`":`"System.\w+Exception`""
164+
}
165+
152166
It 'Null reference exception' {
153167
$result = Invoke-SentryServer {
154168
param([string]$url)

0 commit comments

Comments
 (0)