0742604758
See: https://github.com/dart-lang/linter/issues/4754 Change-Id: Ib875e1640dd15f321362f2dba76b3d5d8524497c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/328183 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Phil Quitslund <pquitslund@google.com> Reviewed-by: Samuel Rawlins <srawlins@google.com>
23 lines
742 B
Dart
23 lines
742 B
Dart
// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
import 'dart:io';
|
|
|
|
import 'package:path/path.dart' as p;
|
|
|
|
import '../rule_test.dart';
|
|
import '../test_constants.dart';
|
|
|
|
/// Solo rule test runner. Handy for debugging until `dart test` supports
|
|
/// VM debugging (https://github.com/dart-lang/test/issues/50).
|
|
///
|
|
/// Run, for example, like so:
|
|
/// dart test/util/rule_debug.dart valid_regexps
|
|
///
|
|
void main(List<String> args) {
|
|
var ruleName = args.first;
|
|
var dir = Directory(ruleTestDataDir).absolute;
|
|
testRule(ruleName, File(p.join(dir.path, '$ruleName.dart')));
|
|
}
|