Skip to content

Commit b0d4ab8

Browse files
DanTupCommit Queue
authored andcommitted
[analysis_server] Move test/integration to integration_test
This was mostly a rename/move of the folder (and the analysis server updated all references), but I also had to: - add `integration_test/analysis_options.yaml` to import from `../test` to get the same lint ignores - update paths of exclusions in `verify_sorted_test.dart` By moving all of the tests that start the server out-of-process out of test, we can: 1. Use "dart test" to just run the faster tests ("dart test test") and get functionality of the pkg:test runner (for example running tests concurrently and JSON output) 2. Allow VS Code to spawn different debug sessions for the "test" and "integration_test" folder, which means we can use a `preLaunchTask` to trigger compilation of the analysis server from source whenever running integration tests (avoiding having to compile manually, or run from source in a way that compiles a new server for each test suite) Change-Id: I37cc03dc32d08c5b51a2eab79f6338bb079b32ac Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/434801 Commit-Queue: Brian Wilkerson <[email protected]> Reviewed-by: Samuel Rawlins <[email protected]> Reviewed-by: Brian Wilkerson <[email protected]>
1 parent 69e98d3 commit b0d4ab8

File tree

98 files changed

+42
-47
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+42
-47
lines changed

pkg/analysis_server/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion

pkg/analysis_server/benchmark/integration/driver.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import 'dart:math' show max, sqrt;
99
import 'package:logging/logging.dart';
1010
import 'package:path/path.dart';
1111

12-
import '../../test/integration/support/integration_test_methods.dart';
13-
import '../../test/integration/support/integration_tests.dart';
12+
import '../../integration_test/support/integration_test_methods.dart';
13+
import '../../integration_test/support/integration_tests.dart';
1414
import 'operation.dart';
1515

1616
/// [Driver] launches and manages an instance of analysis server,

pkg/analysis_server/benchmark/perf/memory_tests.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import 'package:analysis_server/src/protocol_server.dart';
1212
import 'package:analyzer/instrumentation/instrumentation.dart';
1313
import 'package:test/test.dart';
1414

15-
import '../../test/integration/lsp_server/integration_tests.dart';
16-
import '../../test/integration/support/integration_tests.dart';
15+
import '../../integration_test/lsp_server/integration_tests.dart';
16+
import '../../integration_test/support/integration_tests.dart';
1717
import '../../test/lsp/server_abstract.dart' show ClientCapabilitiesHelperMixin;
1818

1919
/// A server protocol-agnostic interface to the memory test, allowing the same

0 commit comments

Comments
 (0)