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

Unified Diff: pkg/analyzer_cli/test/driver_test.dart

Issue 2719703005: fix dartanalyzer find options in bazel workspace (Closed)
Patch Set: merge 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
« no previous file with comments | « pkg/analyzer_cli/test/data/bazel/proj/lib/file.dart ('k') | pkg/analyzer_cli/test/utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer_cli/test/driver_test.dart
diff --git a/pkg/analyzer_cli/test/driver_test.dart b/pkg/analyzer_cli/test/driver_test.dart
index 6b7937c9ccb5b903ecc1bd078ee58222e137414a..4ff4b39a212dde09d832852e9ebfd27e0392010c 100644
--- a/pkg/analyzer_cli/test/driver_test.dart
+++ b/pkg/analyzer_cli/test/driver_test.dart
@@ -117,6 +117,27 @@ main() {
]);
expect(exitCode, 3);
});
+
+ test('bazel workspace relative path', () async {
+ // Copy to temp dir so that existing analysis options
+ // in the test directory hierarchy do not interfere
+ await withTempDirAsync((String tempDirPath) async {
+ await recursiveCopy(
+ new Directory(path.join(testDirectory, 'data', 'bazel')),
+ tempDirPath);
+ Directory origWorkingDir = Directory.current;
+ try {
+ Directory.current = path.join(tempDirPath, 'proj');
+ Driver driver = new Driver();
+ await driver.start([path.join('lib', 'file.dart')]);
+ expect(errorSink.toString(), isEmpty);
+ expect(outSink.toString(), contains('No issues found'));
+ expect(exitCode, 0);
+ } finally {
+ Directory.current = origWorkingDir;
+ }
+ });
+ });
});
group('linter', () {
« no previous file with comments | « pkg/analyzer_cli/test/data/bazel/proj/lib/file.dart ('k') | pkg/analyzer_cli/test/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698