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:
14
dev/automated_tests/flutter_test/filtering_test.dart
Normal file
14
dev/automated_tests/flutter_test/filtering_test.dart
Normal 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";
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user