Add --name and --plain-name to 'flutter test' (#11020)

This adds a way to run only a subset of the tests.
(The new flags do the same thing as 'pub run test'.)
This commit is contained in:
Brian Slesinsky
2017-06-29 17:26:19 -07:00
committed by GitHub
parent 0a915d6faf
commit 6841ab22be
4 changed files with 98 additions and 27 deletions

View File

@@ -0,0 +1,14 @@
// Copyright 2017 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/test.dart';
void main() {
test('included', () {
expect(2 + 2, 4);
});
test('excluded', () {
throw "this test should have been filtered out";
});
}