Support tags when running tests from command line (#55152)
This commit is contained in:
committed by
GitHub
parent
579c82e0ba
commit
d8f353af5b
14
dev/automated_tests/flutter_test/filtering_tag_test.dart
Normal file
14
dev/automated_tests/flutter_test/filtering_tag_test.dart
Normal file
@@ -0,0 +1,14 @@
|
||||
// Copyright 2014 The Flutter 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' hide TypeMatcher, isInstanceOf;
|
||||
|
||||
void main() {
|
||||
test('included', () {
|
||||
expect(2 + 2, 4);
|
||||
}, tags: <String>['include-tag']);
|
||||
test('excluded', () {
|
||||
throw 'this test should have been filtered out';
|
||||
}, tags: <String>['exclude-tag']);
|
||||
}
|
||||
Reference in New Issue
Block a user