Line data Source code
1 : // Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file 2 : // for details. All rights reserved. Use of this source code is governed by a 3 : // BSD-style license that can be found in the LICENSE file. 4 : 5 : import 'package:meta/meta_meta.dart'; 6 : 7 : /// An annotation for marking a test suite to be retried. 8 : /// 9 : /// A suite-level retry configuration will enable retries for every test in the 10 : /// suite, unless the group or test is configured with a more specific retry. 11 : @Target({TargetKind.library}) 12 : class Retry { 13 : /// The number of times the tests in the suite will be retried. 14 : final int count; 15 : 16 : /// Marks all tests in a test suite to be retried. 17 0 : const Retry(this.count); 18 : }