@@ -30,8 +30,8 @@ class IntegrationTestRunner with IOMixin {
3030 List <String > dartDefineArgs = const < String > [],
3131 bool debugLogging = false ,
3232 }) async {
33- void debugLog (String log ) {
34- if (debugLogging) print (log );
33+ void debugLog (String message ) {
34+ if (debugLogging) print ('${ DateTime . now ()}: $ message ' );
3535 }
3636
3737 Future <void > runTest ({required int attemptNumber}) async {
@@ -146,7 +146,9 @@ class IntegrationTestRunner with IOMixin {
146146 'Integration test timed out on try #$attemptNumber . Retrying '
147147 '$testTarget now.' ,
148148 );
149- await runTest (attemptNumber: ++ attemptNumber);
149+ attemptNumber++ ;
150+ debugLog ('running the test (attempt $attemptNumber )' );
151+ await runTest (attemptNumber: attemptNumber);
150152 }
151153 }
152154
@@ -156,6 +158,7 @@ class IntegrationTestRunner with IOMixin {
156158 }
157159 }
158160
161+ debugLog ('running the test (attempt 1)' );
159162 await runTest (attemptNumber: 0 );
160163 }
161164}
@@ -300,8 +303,8 @@ Future<void> runOneOrManyTests<T extends IntegrationTestRunnerArgs>({
300303 return ;
301304 }
302305
303- void debugLog (String log ) {
304- if (debugLogging) print (log );
306+ void debugLog (String message ) {
307+ if (debugLogging) print ('${ DateTime . now ()}: $ message ' );
305308 }
306309
307310 final chromedriver = ChromeDriver ();
0 commit comments