88import 'dart:io' ;
99
1010import 'package:build_runner/src/build_script_generate/build_script_generate.dart' ;
11- import 'package:build_runner_core/src/util/constants .dart' ;
11+ import 'package:build_runner_core/build_runner_core .dart' ;
1212import 'package:path/path.dart' as p;
1313import 'package:test/test.dart' ;
1414
@@ -54,10 +54,10 @@ void main() {
5454
5555 test ('rebuilds if the input file changes and not otherwise' , () async {
5656 var result = await runBuild ();
57- expect (result.stdout, contains ('with 0 outputs' ));
57+ expect (result.stdout, contains ('wrote 0 outputs' ));
5858 await replaceAllInFile ('lib/hello.txt' , 'hello' , 'goodbye' );
5959 result = await runBuild ();
60- expect (result.stdout, contains ('with 1 outputs ' ));
60+ expect (result.stdout, contains ('wrote 1 output ' ));
6161 var content = await readGeneratedFileAsString ('_test/lib/hello.txt.post' );
6262 expect (content, contains ('goodbye' ));
6363 });
@@ -70,7 +70,7 @@ void main() {
7070 );
7171
7272 expect (result.exitCode, isNot (0 ));
73- expect (result.stdout, contains ('Failed to precompile build script' ));
73+ expect (result.stdout, contains ('Failed to compile build script' ));
7474 expect (
7575 result.stdout,
7676 contains ('Unknown experiment: fake-experiment' ),
@@ -134,14 +134,13 @@ void main() {
134134 expect (
135135 (nextBuild.stdout as String ).split ('\n ' ),
136136 containsAllInOrder ([
137- contains ('Generating build script' ),
137+ contains ('Generating the build script' ),
138+ contains ('Compiling the build script.' ),
139+ contains ('Creating the asset graph.' ),
138140 contains (
139- 'Invalidated precompiled build script due to missing asset '
140- 'graph.' ,
141+ 'Building, full build because there is no valid asset graph.' ,
141142 ),
142- contains ('Precompiling build script' ),
143- contains ('Building new asset graph.' ),
144- contains ('Succeeded after' ),
143+ contains (BuildLog .successPattern),
145144 ]),
146145 );
147146 });
0 commit comments