Add dev/run_tests
This script runs the Flutter unit tests. By default, the script assumes you have compiled a SkyShell in an "engine/src" that's a peer to the "flutter" directory.
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
// Copyright 2015 The Chromium 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 'package:sky_tools/executable.dart' as executable;
|
||||
|
||||
main(List<String> args) => executable.main(args);
|
||||
@@ -19,7 +19,7 @@ class TestCommand extends FlutterCommand {
|
||||
final String description = 'Runs Flutter unit tests for the current project (requires a local build of the engine).';
|
||||
|
||||
TestCommand() {
|
||||
argParser.addOption('build-dir', defaultsTo: '../../../engine/src/out/Debug');
|
||||
argParser.addOption('build-dir', help: 'The directory in which to find a prebuilt engine');
|
||||
}
|
||||
|
||||
String get _shellPath {
|
||||
|
||||
@@ -6,3 +6,5 @@ dependencies:
|
||||
path: ../flx
|
||||
flutter:
|
||||
path: ../flutter
|
||||
sky_tools:
|
||||
path: ../flutter_tools
|
||||
|
||||
Reference in New Issue
Block a user