Index: pkg/analyzer/test/src/task/options_test.dart |
diff --git a/pkg/analyzer/test/src/task/options_test.dart b/pkg/analyzer/test/src/task/options_test.dart |
index f65c3fb8076e2f3698b32122a4fb6539906876f8..a0cbca824f8eeb959087167b8192c04ea3c27cf6 100644 |
--- a/pkg/analyzer/test/src/task/options_test.dart |
+++ b/pkg/analyzer/test/src/task/options_test.dart |
@@ -7,6 +7,7 @@ library analyzer.test.src.task.options_test; |
import 'package:analyzer/analyzer.dart'; |
import 'package:analyzer/source/analysis_options_provider.dart'; |
import 'package:analyzer/source/error_processor.dart'; |
+import 'package:analyzer/src/context/context.dart'; |
import 'package:analyzer/src/generated/engine.dart'; |
import 'package:analyzer/src/generated/source.dart'; |
import 'package:analyzer/src/task/options.dart'; |
@@ -128,6 +129,18 @@ analyzer: |
expect(unusedLocal.severity, ErrorSeverity.ERROR); |
} |
+ test_configure_excludes() { |
+ configureContext(''' |
+analyzer: |
+ exclude: |
+ - foo/bar.dart |
+ - 'test/**' |
+'''); |
+ |
+ List<String> excludes = context.getConfigurationData(CONTEXT_EXCLUDES); |
+ expect(excludes, unorderedEquals(['foo/bar.dart', 'test/**'])); |
+ } |
+ |
test_configure_strong_mode() { |
configureContext(''' |
analyzer: |