diff --git a/test/functional/documentation_test.dart b/test/functional/documentation_test.dart index 92514f74..7cf35950 100644 --- a/test/functional/documentation_test.dart +++ b/test/functional/documentation_test.dart @@ -33,8 +33,8 @@ void main() { printOnFailure('PUBSPEC:\n$pubspecSource\n'); await pubGet.shouldExit(0); - final analysis = await TestProcess.start('dartanalyzer', - ['.', '--fatal-lints', '--fatal-infos', '--fatal-warnings'], + final analysis = await TestProcess.start( + 'dart', ['analyze', '--fatal-infos'], workingDirectory: '${d.sandbox}/project'); printOnFailure('SOURCE:\n${dartBlock.source}\n'); await analysis.shouldExit(0);