File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ Scenario: Override errorClass and message from a notifyError() callback and disc
12
12
And the exception "errorClass" equals "Bar"
13
13
And the exception "message" equals "Foo"
14
14
And the event "device.time" is within 30 seconds of the current timestamp
15
- And the "method" of stack frame 0 equals "$S10iOSTestApp28HandledErrorOverrideScenarioC3runyyF "
15
+ And the "method" of stack frame 0 demangles to "iOSTestApp.HandledErrorOverrideScenario.run() -> () "
16
16
And the stack trace is an array with 15 stack frames
17
17
18
18
Scenario : Reporting an NSError
Original file line number Diff line number Diff line change 120
120
assert_not_nil ( match , "No crumb matches the provided message" )
121
121
end
122
122
123
+ Then ( "the {string} of stack frame {int} demangles to {string}" ) do |field , frame_index , expected_value |
124
+ value = read_key_path ( find_request ( 0 ) [ :body ] , "events.0.exceptions.0.stacktrace.#{ frame_index } .#{ field } " )
125
+ demangled_value = `xcrun swift-demangle -compact '#{ value } '` . chomp
126
+ assert_equal ( expected_value , demangled_value )
127
+ end
128
+
123
129
Then ( "the stack trace is an array with {int} stack frames" ) do |expected_length |
124
130
stack_trace = read_key_path ( find_request ( 0 ) [ :body ] , "events.0.exceptions.0.stacktrace" )
125
131
assert_equal ( expected_length , stack_trace . length )
You can’t perform that action at this time.
0 commit comments