Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(785)

Side by Side Diff: pkg/analysis_server/test/context_manager_driver_test.dart

Issue 2627293002: Split "_Driver" tests to separate test files. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | pkg/analysis_server/test/context_manager_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2017, 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:test/test.dart';
6 import 'package:test_reflective_loader/test_reflective_loader.dart';
7
8 import 'context_manager_test.dart';
9
10 main() {
11 defineReflectiveSuite(() {
12 defineReflectiveTests(AbstractContextManagerTest_Driver);
13 defineReflectiveTests(ContextManagerWithNewOptionsTest_Driver);
14 defineReflectiveTests(ContextManagerWithOldOptionsTest_Driver);
15 });
16 }
17
18 @reflectiveTest
19 class AbstractContextManagerTest_Driver extends AbstractContextManagerTest {
20 bool get enableAnalysisDriver => true;
21
22 @failingTest
23 test_embedder_added() {
24 // NoSuchMethodError: The getter 'apiSignature' was called on null.
25 // Receiver: null
26 // Tried calling: apiSignature
27 // dart:core Object .noSuchMethod
28 // package:analyzer/src/dart/analysis/driver.dart 460:20 Analys isDriver.configure
29 // package:analysis_server/src/context_manager.dart 1043:16 Contex tManagerImpl._checkForPackagespecUpdate
30 // package:analysis_server/src/context_manager.dart 1553:5 Contex tManagerImpl._handleWatchEvent
31 //return super.test_embedder_added();
32 fail('NoSuchMethodError');
33 }
34
35 @failingTest
36 test_embedder_packagespec() async {
37 // NoSuchMethodError: The getter 'apiSignature' was called on null.
38 // Receiver: null
39 // Tried calling: apiSignature
40 // dart:core Object .noSuchMethod
41 // package:analyzer/src/dart/analysis/driver.dart 248:20 Analys isDriver.AnalysisDriver
42 // test/context_manager_test.dart 2698:25 TestCo ntextManagerCallbacks.addAnalysisDriver
43 // package:analysis_server/src/context_manager.dart 1186:39 Contex tManagerImpl._createContext
44 // package:analysis_server/src/context_manager.dart 1247:16 Contex tManagerImpl._createContexts
45 // package:analysis_server/src/context_manager.dart 886:9 Contex tManagerImpl.setRoots
46 // test/context_manager_test.dart 154:13 Abstra ctContextManagerTest.test_embedder_packagespec.<async>
47 return super.test_embedder_packagespec();
48 }
49 }
50
51 @reflectiveTest
52 class ContextManagerWithNewOptionsTest_Driver
53 extends ContextManagerWithNewOptionsTest {
54 bool get enableAnalysisDriver => true;
55
56 @failingTest
57 test_analysis_options_file_delete_with_embedder() async {
58 // This fails because the ContextBuilder doesn't pick up the strongMode
59 // flag from the embedder.yaml file.
60 return super.test_analysis_options_file_delete_with_embedder();
61 }
62
63 @failingTest
64 test_embedder_options() async {
65 // This fails because the ContextBuilder doesn't pick up the strongMode
66 // flag from the embedder.yaml file.
67 return super.test_embedder_options();
68 }
69
70 @failingTest
71 test_optionsFile_update_strongMode() async {
72 // It appears that this fails because we are not correctly updating the
73 // analysis options in the driver when the file is modified.
74 //return super.test_optionsFile_update_strongMode();
75 // After a few other changes, the test now times out on my machine, so I'm
76 // disabling it in order to prevent it from being flaky.
77 fail('Test times out');
78 }
79
80 @failingTest
81 test_path_filter_analysis_option() async {
82 // This fails because we're not analyzing the analyis options file.
83 return super.test_path_filter_analysis_option();
84 }
85 }
86
87 @reflectiveTest
88 class ContextManagerWithOldOptionsTest_Driver
89 extends ContextManagerWithOldOptionsTest {
90 bool get enableAnalysisDriver => true;
91
92 @failingTest
93 test_analysis_options_file_delete_with_embedder() async {
94 // This fails because the ContextBuilder doesn't pick up the strongMode
95 // flag from the embedder.yaml file.
96 return super.test_analysis_options_file_delete_with_embedder();
97 }
98
99 @failingTest
100 test_embedder_options() async {
101 // This fails because the ContextBuilder doesn't pick up the strongMode
102 // flag from the embedder.yaml file.
103 return super.test_embedder_options();
104 }
105
106 @failingTest
107 test_optionsFile_update_strongMode() async {
108 // It appears that this fails because we are not correctly updating the
109 // analysis options in the driver when the file is modified.
110 //return super.test_optionsFile_update_strongMode();
111 // After a few other changes, the test now times out on my machine, so I'm
112 // disabling it in order to prevent it from being flaky.
113 fail('Test times out');
114 }
115
116 @failingTest
117 test_path_filter_analysis_option() async {
118 // This fails because we're not analyzing the analyis options file.
119 return super.test_path_filter_analysis_option();
120 }
121 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analysis_server/test/context_manager_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698