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:
Adam Barth
2015-08-19 23:12:00 -07:00
parent f7fa689da4
commit f77983baa8
6 changed files with 381 additions and 2 deletions

View 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);
}