@@ -10,13 +10,13 @@ void main() {
10
10
11
11
group ('correctly encodes default invocation' , () {
12
12
test ('on Windows' , () {
13
- final flutterOptions = FlutterAppOptions (
13
+ const flutterOptions = FlutterAppOptions (
14
14
target: r'C:\Users\john\app\integration_test\app_test.dart' ,
15
15
buildMode: BuildMode .debug,
16
16
flavor: null ,
17
17
dartDefines: {},
18
18
);
19
- options = AndroidAppOptions (flutter: flutterOptions);
19
+ options = const AndroidAppOptions (flutter: flutterOptions);
20
20
21
21
final invocation =
22
22
options.toGradleAssembleTestInvocation (isWindows: true );
@@ -31,13 +31,13 @@ void main() {
31
31
});
32
32
33
33
test ('on macOS' , () {
34
- final flutterOpts = FlutterAppOptions (
34
+ const flutterOpts = FlutterAppOptions (
35
35
target: '/Users/john/app/integration_test/app_test.dart' ,
36
36
buildMode: BuildMode .release,
37
37
flavor: null ,
38
38
dartDefines: {},
39
39
);
40
- options = AndroidAppOptions (flutter: flutterOpts);
40
+ options = const AndroidAppOptions (flutter: flutterOpts);
41
41
42
42
final invocation =
43
43
options.toGradleAssembleTestInvocation (isWindows: false );
@@ -60,13 +60,13 @@ void main() {
60
60
};
61
61
62
62
test ('on Windows' , () {
63
- final flutterOpts = FlutterAppOptions (
63
+ const flutterOpts = FlutterAppOptions (
64
64
target: r'C:\Users\john\app\integration_test\app_test.dart' ,
65
65
buildMode: BuildMode .release,
66
66
flavor: 'dev' ,
67
67
dartDefines: dartDefines,
68
68
);
69
- options = AndroidAppOptions (flutter: flutterOpts);
69
+ options = const AndroidAppOptions (flutter: flutterOpts);
70
70
71
71
final invocation =
72
72
options.toGradleAssembleTestInvocation (isWindows: true );
@@ -82,13 +82,13 @@ void main() {
82
82
});
83
83
84
84
test ('on macOS' , () {
85
- final flutterOpts = FlutterAppOptions (
85
+ const flutterOpts = FlutterAppOptions (
86
86
target: '/Users/john/app/integration_test/app_test.dart' ,
87
87
buildMode: BuildMode .debug,
88
88
flavor: 'dev' ,
89
89
dartDefines: dartDefines,
90
90
);
91
- options = AndroidAppOptions (flutter: flutterOpts);
91
+ options = const AndroidAppOptions (flutter: flutterOpts);
92
92
93
93
final invocation =
94
94
options.toGradleAssembleTestInvocation (isWindows: false );
@@ -109,7 +109,7 @@ void main() {
109
109
late IOSAppOptions options;
110
110
111
111
group ('correctly encodes default xcodebuild invocation for simulator' , () {
112
- final flutterOpts = FlutterAppOptions (
112
+ const flutterOpts = FlutterAppOptions (
113
113
target: 'integration_test/app_test.dart' ,
114
114
buildMode: BuildMode .debug,
115
115
flavor: null ,
@@ -185,7 +185,7 @@ void main() {
185
185
group (
186
186
'correctly encodes customized xcodebuild invocation for real device' ,
187
187
() {
188
- final flutterOpts = FlutterAppOptions (
188
+ const flutterOpts = FlutterAppOptions (
189
189
target: 'integration_test/app_test.dart' ,
190
190
buildMode: BuildMode .release,
191
191
flavor: 'prod' ,
0 commit comments