mirror of
https://github.com/dart-lang/sdk
synced 2024-09-15 22:51:29 +00:00
9d8087a399
The tests in analyzer_cli and analyzer_plugin imported analysis_server, resulting in warnings when publishing analyzer_plugin. combining these tests all into analysis_server shares more code and avoids the warning. Change-Id: I519f67872500e93e399c5c3d2aeddf781f07602c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/149610 Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Paul Berry <paulberry@google.com>
31 lines
866 B
Dart
31 lines
866 B
Dart
// Copyright (c) 2017, 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 'package:test_reflective_loader/test_reflective_loader.dart';
|
|
|
|
import '../tool/spec/check_all_test.dart' as check_spec;
|
|
import 'plugin/test_all.dart' as plugin;
|
|
import 'src/test_all.dart' as src;
|
|
import 'utilities/test_all.dart' as utilities;
|
|
import 'verify_tests_test.dart' as verify_tests;
|
|
|
|
void main() {
|
|
defineReflectiveSuite(() {
|
|
plugin.main();
|
|
src.main();
|
|
utilities.main();
|
|
verify_tests.main();
|
|
defineReflectiveSuite(() {
|
|
defineReflectiveTests(SpecTest);
|
|
}, name: 'spec');
|
|
}, name: 'analyzer_plugin');
|
|
}
|
|
|
|
@reflectiveTest
|
|
class SpecTest {
|
|
void test_specHasBeenGenerated() {
|
|
check_spec.main();
|
|
}
|
|
}
|