@@ -135,6 +135,21 @@ void main() {
135135 null );
136136 }
137137
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+
138153 // Returns the ProcessCall to expect for running the tests in the
139154 // workspace [platform]/Runner.xcworkspace, with the given extra flags.
140155 ProcessCall getRunTestCall (
@@ -246,6 +261,8 @@ void main() {
246261 processRunner.recordedCalls,
247262 orderedEquals (< ProcessCall > [
248263 getTargetCheckCall (pluginExampleDirectory, 'macos' ),
264+ getConfigOnlyDarwinBuildCall (
265+ pluginExampleDirectory, FlutterPlatform .macos),
249266 getRunTestCall (pluginExampleDirectory, 'macos' ,
250267 extraFlags: < String > ['-only-testing:RunnerUITests' ]),
251268 ]));
@@ -317,6 +334,8 @@ void main() {
317334 processRunner.recordedCalls,
318335 orderedEquals (< ProcessCall > [
319336 getTargetCheckCall (pluginExampleDirectory, 'ios' ),
337+ getConfigOnlyDarwinBuildCall (
338+ pluginExampleDirectory, FlutterPlatform .ios),
320339 getRunTestCall (pluginExampleDirectory, 'ios' ,
321340 destination: 'foo_destination' ),
322341 ]));
@@ -354,6 +373,8 @@ void main() {
354373 ],
355374 null ),
356375 getTargetCheckCall (pluginExampleDirectory, 'ios' ),
376+ getConfigOnlyDarwinBuildCall (
377+ pluginExampleDirectory, FlutterPlatform .ios),
357378 getRunTestCall (pluginExampleDirectory, 'ios' ,
358379 destination: 'id=$_simulatorDeviceId ' ),
359380 ]));
@@ -421,6 +442,8 @@ void main() {
421442 processRunner.recordedCalls,
422443 orderedEquals (< ProcessCall > [
423444 getTargetCheckCall (pluginExampleDirectory, 'macos' ),
445+ getConfigOnlyDarwinBuildCall (
446+ pluginExampleDirectory, FlutterPlatform .macos),
424447 getRunTestCall (pluginExampleDirectory, 'macos' ),
425448 ]));
426449 });
@@ -1305,6 +1328,8 @@ public class FlutterActivityTest {
13051328 processRunner.recordedCalls,
13061329 orderedEquals (< ProcessCall > [
13071330 getTargetCheckCall (pluginExampleDirectory, 'macos' ),
1331+ getConfigOnlyDarwinBuildCall (
1332+ pluginExampleDirectory, FlutterPlatform .macos),
13081333 getRunTestCall (pluginExampleDirectory, 'macos' ,
13091334 extraFlags: < String > ['-only-testing:RunnerTests' ]),
13101335 ]));
@@ -1340,6 +1365,8 @@ public class FlutterActivityTest {
13401365 processRunner.recordedCalls,
13411366 orderedEquals (< ProcessCall > [
13421367 getTargetCheckCall (pluginExampleDirectory, 'macos' ),
1368+ getConfigOnlyDarwinBuildCall (
1369+ pluginExampleDirectory, FlutterPlatform .macos),
13431370 getRunTestCall (pluginExampleDirectory, 'macos' ,
13441371 extraFlags: < String > ['-only-testing:RunnerUITests' ]),
13451372 ]));
@@ -1609,9 +1636,13 @@ public class FlutterActivityTest {
16091636 ],
16101637 androidFolder.path),
16111638 getTargetCheckCall (pluginExampleDirectory, 'ios' ),
1639+ getConfigOnlyDarwinBuildCall (
1640+ pluginExampleDirectory, FlutterPlatform .ios),
16121641 getRunTestCall (pluginExampleDirectory, 'ios' ,
16131642 destination: 'foo_destination' ),
16141643 getTargetCheckCall (pluginExampleDirectory, 'macos' ),
1644+ getConfigOnlyDarwinBuildCall (
1645+ pluginExampleDirectory, FlutterPlatform .macos),
16151646 getRunTestCall (pluginExampleDirectory, 'macos' ),
16161647 ]));
16171648 });
@@ -1648,6 +1679,8 @@ public class FlutterActivityTest {
16481679 processRunner.recordedCalls,
16491680 orderedEquals (< ProcessCall > [
16501681 getTargetCheckCall (pluginExampleDirectory, 'macos' ),
1682+ getConfigOnlyDarwinBuildCall (
1683+ pluginExampleDirectory, FlutterPlatform .macos),
16511684 getRunTestCall (pluginExampleDirectory, 'macos' ),
16521685 ]));
16531686 });
@@ -1684,6 +1717,8 @@ public class FlutterActivityTest {
16841717 processRunner.recordedCalls,
16851718 orderedEquals (< ProcessCall > [
16861719 getTargetCheckCall (pluginExampleDirectory, 'ios' ),
1720+ getConfigOnlyDarwinBuildCall (
1721+ pluginExampleDirectory, FlutterPlatform .ios),
16871722 getRunTestCall (pluginExampleDirectory, 'ios' ,
16881723 destination: 'foo_destination' ),
16891724 ]));
0 commit comments