We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5158fc5 commit c49118cCopy full SHA for c49118c
flutter/example/integration_test/integration_test.dart
@@ -39,11 +39,15 @@ void main() {
39
testWidgets('setup sentry and capture exception', (tester) async {
40
await setupSentryAndApp(tester);
41
42
- final exception = SentryException(
43
- type: 'StarError', value: 'I have a bad feeling about this...');
44
- final sentryId = await Sentry.captureException(exception);
45
-
46
- expect(sentryId != SentryId.empty(), true);
+ try {
+ throw SentryException(
+ type: 'StarError', value: 'I have a bad feeling about this...');
+ } catch (exception, stacktrace) {
+ final sentryId =
47
+ await Sentry.captureException(exception, stackTrace: stacktrace);
48
+
49
+ expect(sentryId != SentryId.empty(), true);
50
+ }
51
});
52
53
testWidgets('setup sentry and capture message', (tester) async {
0 commit comments