File tree Expand file tree Collapse file tree 2 files changed +18
-7
lines changed
flutter/test/integrations Expand file tree Collapse file tree 2 files changed +18
-7
lines changed Original file line number Diff line number Diff line change 29
29
defaults :
30
30
run :
31
31
shell : bash
32
+ working-directory : flutter
32
33
strategy :
33
34
fail-fast : false
34
35
matrix :
@@ -77,21 +78,23 @@ jobs:
77
78
- run : flutter upgrade
78
79
79
80
- name : Pub Get
80
- run : |
81
- cd flutter
82
- flutter pub get
81
+ run : flutter pub get
83
82
84
- - name : Test chrome
83
+ - name : Test web (JS)
85
84
if : matrix.target == 'web'
86
85
run : |
87
- cd flutter
88
86
flutter test --platform chrome --test-randomize-ordering-seed=random --exclude-tags canvasKit
89
87
flutter test --platform chrome --test-randomize-ordering-seed=random --tags canvasKit --web-renderer canvaskit
90
88
89
+ - name : Test web (WASM)
90
+ if : matrix.target == 'web'
91
+ run : |
92
+ flutter test --platform chrome --wasm --test-randomize-ordering-seed=random --exclude-tags canvasKit
93
+ flutter test --platform chrome --wasm --test-randomize-ordering-seed=random --tags canvasKit --web-renderer canvaskit
94
+
91
95
- name : Test VM with coverage
92
96
if : matrix.target == 'linux' || matrix.target == 'macos' || matrix.target == 'windows'
93
97
run : |
94
- cd flutter
95
98
flutter test --coverage --test-randomize-ordering-seed=random
96
99
dart run remove_from_coverage -f coverage/lcov.info -r 'binding.dart'
97
100
@@ -111,11 +114,11 @@ jobs:
111
114
exclude : ' lib/src/native/cocoa/binding.dart'
112
115
113
116
- name : Build ${{ matrix.target }}
117
+ working-directory : flutter/example
114
118
run : |
115
119
flutter config --enable-windows-desktop
116
120
flutter config --enable-macos-desktop
117
121
flutter config --enable-linux-desktop
118
- cd flutter/example
119
122
TARGET=${{ matrix.target }}
120
123
flutter pub get
121
124
case $TARGET in
Original file line number Diff line number Diff line change @@ -82,6 +82,10 @@ void main() {
82
82
expect (event.contexts['flutter_error_details' ]['context' ],
83
83
'thrown while handling a gesture' );
84
84
expect (event.contexts['flutter_error_details' ]['information' ], 'foo bar' );
85
+ }, onPlatform: {
86
+ // TODO stacktrace parsing for wasm is not implemented yet
87
+ // https://github.com/getsentry/sentry-dart/issues/1480
88
+ 'wasm' : Skip ('WASM stack trace parsing not implemented yet' ),
85
89
});
86
90
87
91
test ('captures error with long FlutterErrorDetails.information' , () async {
@@ -115,6 +119,10 @@ void main() {
115
119
'thrown while handling a gesture' );
116
120
expect (event.contexts['flutter_error_details' ]['information' ],
117
121
'foo bar\n Hello World!' );
122
+ }, onPlatform: {
123
+ // TODO stacktrace parsing for wasm is not implemented yet
124
+ // https://github.com/getsentry/sentry-dart/issues/1480
125
+ 'wasm' : Skip ('WASM stack trace parsing not implemented yet' ),
118
126
});
119
127
120
128
test ('captures error with no FlutterErrorDetails' , () async {
You can’t perform that action at this time.
0 commit comments