@@ -9,16 +9,30 @@ import 'package:process/process.dart';
9
9
import '../src/common.dart' ;
10
10
11
11
void main () {
12
- test ('All development tools are hidden' , () async {
13
- final String flutterBin = globals.fs.path.join (getFlutterRoot (), 'bin' , 'flutter' );
14
- final ProcessResult result = await const LocalProcessManager ().run (< String > [
15
- flutterBin,
16
- '-h' ,
17
- '-v' ,
18
- ]);
12
+ test ('All development tools are hidden and help text is not verbose ' , () async {
13
+ final String flutterBin = globals.fs.path.join (getFlutterRoot (), 'bin' , 'flutter' );
14
+ final ProcessResult result = await const LocalProcessManager ().run (< String > [
15
+ flutterBin,
16
+ '-h' ,
17
+ '-v' ,
18
+ ]);
19
19
20
- expect (result.stdout, isNot (contains ('ide-config' )));
21
- expect (result.stdout, isNot (contains ('update-packages' )));
22
- expect (result.stdout, isNot (contains ('inject-plugins' )));
20
+ expect (result.stdout, isNot (contains ('ide-config' )));
21
+ expect (result.stdout, isNot (contains ('update-packages' )));
22
+ expect (result.stdout, isNot (contains ('inject-plugins' )));
23
+ // Only printed by verbose tool.
24
+ expect (result.stdout, isNot (contains ('exiting with code 0' )));
25
+ });
26
+
27
+ test ('flutter doctor is not verbose' , () async {
28
+ final String flutterBin = globals.fs.path.join (getFlutterRoot (), 'bin' , 'flutter' );
29
+ final ProcessResult result = await const LocalProcessManager ().run (< String > [
30
+ flutterBin,
31
+ 'doctor' ,
32
+ '-v' ,
33
+ ]);
34
+
35
+ // Only printed by verbose tool.
36
+ expect (result.stdout, isNot (contains ('exiting with code 0' )));
23
37
});
24
38
}
0 commit comments