Skip to content

Commit

Permalink
Add e2e test for ios frames
Browse files Browse the repository at this point in the history
  • Loading branch information
kstenerud committed Nov 19, 2024
1 parent bfb4edb commit 569a3da
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions features/csharp/csharp_events.feature
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,24 @@ Feature: csharp events
And expected device metadata is included in the event
And expected app metadata is included in the event

@ios_only
Scenario: Uncaught Exception ios smoke test
When I run the game in the "UncaughtExceptionSmokeTest" state
And I wait to receive an error
Then the error is valid for the error reporting API sent by the Unity notifier
And the exception "errorClass" equals "Exception"
And the exception "message" equals "UncaughtExceptionSmokeTest"
And the event "unhandled" is false
And custom metadata is included in the event
And expected device metadata is included in the event
And expected app metadata is included in the event
And the error payload field "events.0.exceptions.0.stacktrace.0.frameAddress" matches the regex "\d+"
And the error payload field "events.0.exceptions.0.stacktrace.0.method" equals "UncaughtExceptionSmokeTest.Run()"
And the error payload field "events.0.exceptions.0.stacktrace.0.machoFile" matches the regex ".*/UnityFramework.framework/UnityFramework"
And the error payload field "events.0.exceptions.0.stacktrace.0.machoLoadAddress" matches the regex "\d+"
And the error payload field "events.0.exceptions.0.stacktrace.0.machoUUID" matches the regex "[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"
And the error payload field "events.0.exceptions.0.stacktrace.0.inProject" is true

Scenario: Debug Log Exception smoke test
When I run the game in the "DebugLogExceptionSmokeTest" state
And I wait to receive an error
Expand Down

0 comments on commit 569a3da

Please sign in to comment.