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

Unified Diff: pkg/analysis_server/test/integration/integration_tests.dart

Issue 2696323004: Tests for analysis.navigation. (Closed)
Patch Set: Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: pkg/analysis_server/test/integration/integration_tests.dart
diff --git a/pkg/analysis_server/test/integration/integration_tests.dart b/pkg/analysis_server/test/integration/integration_tests.dart
index 85418d8bb7b6cc340a91053d721f9f1d20178b66..57b914fda6e68aa9a510ba13a074cccfe42406b3 100644
--- a/pkg/analysis_server/test/integration/integration_tests.dart
+++ b/pkg/analysis_server/test/integration/integration_tests.dart
@@ -176,7 +176,7 @@ abstract class AbstractAnalysisServerIntegrationTest
* The server is automatically started before every test, and a temporary
* [sourceDirectory] is created.
*/
- Future setUp() {
+ Future setUp() async {
sourceDirectory = new Directory(Directory.systemTemp
.createTempSync('analysisServer')
.resolveSymbolicLinksSync());
@@ -193,13 +193,12 @@ abstract class AbstractAnalysisServerIntegrationTest
// A server error should never happen during an integration test.
fail('${params.message}\n${params.stackTrace}');
});
- return startServer().then((_) {
- server.listenToOutput(dispatchNotification);
- server.exitCode.then((_) {
- skipShutdown = true;
- });
- return serverConnected.future;
+ await startServer();
+ server.listenToOutput(dispatchNotification);
+ server.exitCode.then((_) {
+ skipShutdown = true;
});
+ return serverConnected.future;
}
/**
@@ -651,14 +650,12 @@ class Server {
}
/**
- * Start the server. If [debugServer] is `true`, the server will be started
- * with "--debug", allowing a debugger to be attached. If [profileServer] is
- * `true`, the server will be started with "--observe" and
- * "--pause-isolates-on-exit", allowing the observatory to be used.
+ * Start the server. If [profileServer] is `true`, the server will be started
+ * with "--observe" and "--pause-isolates-on-exit", allowing the observatory
+ * to be used.
*/
Future start(
{bool checked: true,
- bool debugServer: false,
int diagnosticPort,
bool enableNewAnalysisDriver: false,
bool noErrorNotification: false,
@@ -678,9 +675,6 @@ class Server {
//
// Add VM arguments.
//
- if (debugServer) {
- arguments.add('--debug');
- }
if (profileServer) {
if (servicesPort == null) {
arguments.add('--observe');
@@ -725,6 +719,9 @@ class Server {
}
// print('Launching $serverPath');
// print('$dartBinary ${arguments.join(' ')}');
+ // TODO(devoncarew): We could experiment with instead launching the analysis
+ // server in a separate isolate. This would make it easier to debug the
+ // integration tests, and would like speed the tests up as well.
Brian Wilkerson 2017/02/16 14:57:43 But then they wouldn't be true integration tests.
return Process.start(dartBinary, arguments).then((Process process) {
_process = process;
process.exitCode.then((int code) {

Powered by Google App Engine
This is Rietveld 408576698