Adds experimental pub run sky_tools:sky_test command
This command uses package:test to run Dart tests with sky_shell. For this to work, we need https://github.com/dart-lang/test/tree/hacky-loader-hook to land. We're also not smart enough to find sky_shell ourselves yet. Instead, we take the path as input using an environment variable. Eventually, we'll be able to get the sky_shell executable from package:sky_engine, but we don't yet ship that executable.
This commit is contained in:
11
packages/flutter_tools/bin/sky_test.dart
Normal file
11
packages/flutter_tools/bin/sky_test.dart
Normal file
@@ -0,0 +1,11 @@
|
||||
// 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:test/src/executable.dart' as executable;
|
||||
import 'package:sky_tools/src/test/loader.dart' as loader;
|
||||
|
||||
main(List<String> args) {
|
||||
loader.installHook();
|
||||
return executable.main(args);
|
||||
}
|
||||
Reference in New Issue
Block a user