@@ -135,6 +135,21 @@ void main() {
135
135
null );
136
136
}
137
137
138
+ // Returns the ProcessCall to expect for generating the native project files
139
+ // with a --config-only build on iOS or macOS.
140
+ ProcessCall getConfigOnlyDarwinBuildCall (
141
+ Directory package, FlutterPlatform platform) {
142
+ return ProcessCall (
143
+ 'flutter' ,
144
+ < String > [
145
+ 'build' ,
146
+ if (platform == FlutterPlatform .ios) 'ios' else 'macos' ,
147
+ '--debug' ,
148
+ '--config-only' ,
149
+ ],
150
+ package.path);
151
+ }
152
+
138
153
// Returns the ProcessCall to expect for running the tests in the
139
154
// workspace [platform]/Runner.xcworkspace, with the given extra flags.
140
155
ProcessCall getRunTestCall (
@@ -246,6 +261,8 @@ void main() {
246
261
processRunner.recordedCalls,
247
262
orderedEquals (< ProcessCall > [
248
263
getTargetCheckCall (pluginExampleDirectory, 'macos' ),
264
+ getConfigOnlyDarwinBuildCall (
265
+ pluginExampleDirectory, FlutterPlatform .macos),
249
266
getRunTestCall (pluginExampleDirectory, 'macos' ,
250
267
extraFlags: < String > ['-only-testing:RunnerUITests' ]),
251
268
]));
@@ -317,6 +334,8 @@ void main() {
317
334
processRunner.recordedCalls,
318
335
orderedEquals (< ProcessCall > [
319
336
getTargetCheckCall (pluginExampleDirectory, 'ios' ),
337
+ getConfigOnlyDarwinBuildCall (
338
+ pluginExampleDirectory, FlutterPlatform .ios),
320
339
getRunTestCall (pluginExampleDirectory, 'ios' ,
321
340
destination: 'foo_destination' ),
322
341
]));
@@ -354,6 +373,8 @@ void main() {
354
373
],
355
374
null ),
356
375
getTargetCheckCall (pluginExampleDirectory, 'ios' ),
376
+ getConfigOnlyDarwinBuildCall (
377
+ pluginExampleDirectory, FlutterPlatform .ios),
357
378
getRunTestCall (pluginExampleDirectory, 'ios' ,
358
379
destination: 'id=$_simulatorDeviceId ' ),
359
380
]));
@@ -421,6 +442,8 @@ void main() {
421
442
processRunner.recordedCalls,
422
443
orderedEquals (< ProcessCall > [
423
444
getTargetCheckCall (pluginExampleDirectory, 'macos' ),
445
+ getConfigOnlyDarwinBuildCall (
446
+ pluginExampleDirectory, FlutterPlatform .macos),
424
447
getRunTestCall (pluginExampleDirectory, 'macos' ),
425
448
]));
426
449
});
@@ -1305,6 +1328,8 @@ public class FlutterActivityTest {
1305
1328
processRunner.recordedCalls,
1306
1329
orderedEquals (< ProcessCall > [
1307
1330
getTargetCheckCall (pluginExampleDirectory, 'macos' ),
1331
+ getConfigOnlyDarwinBuildCall (
1332
+ pluginExampleDirectory, FlutterPlatform .macos),
1308
1333
getRunTestCall (pluginExampleDirectory, 'macos' ,
1309
1334
extraFlags: < String > ['-only-testing:RunnerTests' ]),
1310
1335
]));
@@ -1340,6 +1365,8 @@ public class FlutterActivityTest {
1340
1365
processRunner.recordedCalls,
1341
1366
orderedEquals (< ProcessCall > [
1342
1367
getTargetCheckCall (pluginExampleDirectory, 'macos' ),
1368
+ getConfigOnlyDarwinBuildCall (
1369
+ pluginExampleDirectory, FlutterPlatform .macos),
1343
1370
getRunTestCall (pluginExampleDirectory, 'macos' ,
1344
1371
extraFlags: < String > ['-only-testing:RunnerUITests' ]),
1345
1372
]));
@@ -1609,9 +1636,13 @@ public class FlutterActivityTest {
1609
1636
],
1610
1637
androidFolder.path),
1611
1638
getTargetCheckCall (pluginExampleDirectory, 'ios' ),
1639
+ getConfigOnlyDarwinBuildCall (
1640
+ pluginExampleDirectory, FlutterPlatform .ios),
1612
1641
getRunTestCall (pluginExampleDirectory, 'ios' ,
1613
1642
destination: 'foo_destination' ),
1614
1643
getTargetCheckCall (pluginExampleDirectory, 'macos' ),
1644
+ getConfigOnlyDarwinBuildCall (
1645
+ pluginExampleDirectory, FlutterPlatform .macos),
1615
1646
getRunTestCall (pluginExampleDirectory, 'macos' ),
1616
1647
]));
1617
1648
});
@@ -1648,6 +1679,8 @@ public class FlutterActivityTest {
1648
1679
processRunner.recordedCalls,
1649
1680
orderedEquals (< ProcessCall > [
1650
1681
getTargetCheckCall (pluginExampleDirectory, 'macos' ),
1682
+ getConfigOnlyDarwinBuildCall (
1683
+ pluginExampleDirectory, FlutterPlatform .macos),
1651
1684
getRunTestCall (pluginExampleDirectory, 'macos' ),
1652
1685
]));
1653
1686
});
@@ -1684,6 +1717,8 @@ public class FlutterActivityTest {
1684
1717
processRunner.recordedCalls,
1685
1718
orderedEquals (< ProcessCall > [
1686
1719
getTargetCheckCall (pluginExampleDirectory, 'ios' ),
1720
+ getConfigOnlyDarwinBuildCall (
1721
+ pluginExampleDirectory, FlutterPlatform .ios),
1687
1722
getRunTestCall (pluginExampleDirectory, 'ios' ,
1688
1723
destination: 'foo_destination' ),
1689
1724
]));
0 commit comments