forked from flutter/packages
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor fuchsia_precache suite in order to reduce testing logic in test.dart and allow for later implementing package:test onto the existing fuchsia_precache tests Part of flutter/flutter#145482
- Loading branch information
Showing
2 changed files
with
33 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Copyright 2014 The Flutter Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
import '../run_command.dart'; | ||
import '../utils.dart'; | ||
|
||
// Runs flutter_precache. | ||
Future<void> fuchsiaPrecacheRunner(String flutterRoot) async { | ||
printProgress('${green}Running flutter precache tests$reset'); | ||
await runCommand( | ||
'flutter', | ||
const <String>[ | ||
'config', | ||
'--enable-fuchsia', | ||
], | ||
workingDirectory: flutterRoot, | ||
); | ||
await runCommand( | ||
'flutter', | ||
const <String>[ | ||
'precache', | ||
'--flutter_runner', | ||
'--fuchsia', | ||
'--no-android', | ||
'--no-ios', | ||
'--force', | ||
], | ||
workingDirectory: flutterRoot, | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters