OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 @TestOn("vm") | 5 @TestOn("vm") |
6 library analyzer_cli.test.driver; | 6 library analyzer_cli.test.driver; |
7 | 7 |
8 import 'dart:io'; | 8 import 'dart:io'; |
9 | 9 |
10 import 'package:analyzer/plugin/options.dart'; | 10 import 'package:analyzer/plugin/options.dart'; |
11 import 'package:analyzer/source/analysis_options_provider.dart'; | 11 import 'package:analyzer/source/analysis_options_provider.dart'; |
12 import 'package:analyzer/src/generated/engine.dart'; | 12 import 'package:analyzer/src/generated/engine.dart'; |
13 import 'package:analyzer/src/generated/error.dart'; | 13 import 'package:analyzer/src/generated/error.dart'; |
14 import 'package:analyzer/src/generated/source.dart'; | 14 import 'package:analyzer/src/generated/source.dart'; |
15 import 'package:analyzer/src/plugin/plugin_configuration.dart'; | 15 import 'package:analyzer/src/plugin/plugin_configuration.dart'; |
16 import 'package:analyzer/src/services/lint.dart'; | 16 import 'package:analyzer/src/services/lint.dart'; |
17 import 'package:analyzer_cli/src/bootloader.dart'; | 17 import 'package:analyzer_cli/src/bootloader.dart'; |
18 import 'package:analyzer_cli/src/driver.dart'; | 18 import 'package:analyzer_cli/src/driver.dart'; |
19 import 'package:analyzer_cli/src/options.dart'; | 19 import 'package:analyzer_cli/src/options.dart'; |
20 import 'package:path/path.dart' as path; | 20 import 'package:path/path.dart' as path; |
21 import 'package:plugin/plugin.dart'; | 21 import 'package:plugin/plugin.dart'; |
22 import 'package:test/test.dart'; | 22 import 'package:test/test.dart'; |
23 import 'package:yaml/src/yaml_node.dart'; | 23 import 'package:yaml/src/yaml_node.dart'; |
24 | 24 |
25 main() { | 25 // TODO(pq): fix tests to run safely on the bots |
| 26 // https://github.com/dart-lang/sdk/issues/25001 |
| 27 main() {} |
| 28 _main() { |
26 group('Driver', () { | 29 group('Driver', () { |
27 StringSink savedOutSink, savedErrorSink; | 30 StringSink savedOutSink, savedErrorSink; |
28 int savedExitCode; | 31 int savedExitCode; |
29 setUp(() { | 32 setUp(() { |
30 savedOutSink = outSink; | 33 savedOutSink = outSink; |
31 savedErrorSink = errorSink; | 34 savedErrorSink = errorSink; |
32 savedExitCode = exitCode; | 35 savedExitCode = exitCode; |
33 outSink = new StringBuffer(); | 36 outSink = new StringBuffer(); |
34 errorSink = new StringBuffer(); | 37 errorSink = new StringBuffer(); |
35 }); | 38 }); |
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
475 this.options = options; | 478 this.options = options; |
476 } | 479 } |
477 } | 480 } |
478 | 481 |
479 class TestSource implements Source { | 482 class TestSource implements Source { |
480 TestSource(); | 483 TestSource(); |
481 | 484 |
482 @override | 485 @override |
483 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); | 486 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); |
484 } | 487 } |
OLD | NEW |