@@ -120,7 +120,9 @@ async fn run_tests() -> Result<()> {
120
120
121
121
let start = Instant :: now ( ) ;
122
122
123
- let errors: Vec < _ > = futures:: stream:: iter ( read_test_files ( & options) ?)
123
+ let test_files = read_test_files ( & options) ?;
124
+ let num_tests = test_files. len ( ) ;
125
+ let errors: Vec < _ > = futures:: stream:: iter ( test_files)
124
126
. map ( |test_file| {
125
127
let validator = if options. include_sqlite
126
128
&& test_file. relative_path . starts_with ( SQLITE_PREFIX )
@@ -184,7 +186,11 @@ async fn run_tests() -> Result<()> {
184
186
. collect ( )
185
187
. await ;
186
188
187
- m. println ( format ! ( "Completed in {}" , HumanDuration ( start. elapsed( ) ) ) ) ?;
189
+ m. println ( format ! (
190
+ "Completed {} test files in {}" ,
191
+ num_tests,
192
+ HumanDuration ( start. elapsed( ) )
193
+ ) ) ?;
188
194
189
195
#[ cfg( feature = "postgres" ) ]
190
196
terminate_postgres_container ( ) . await ?;
@@ -491,9 +497,7 @@ impl TestFile {
491
497
}
492
498
}
493
499
494
- fn read_test_files < ' a > (
495
- options : & ' a Options ,
496
- ) -> Result < Box < dyn Iterator < Item = TestFile > + ' a > > {
500
+ fn read_test_files ( options : & Options ) -> Result < Vec < TestFile > > {
497
501
let mut paths = read_dir_recursive ( TEST_DIRECTORY ) ?
498
502
. into_iter ( )
499
503
. map ( TestFile :: new)
@@ -516,7 +520,7 @@ fn read_test_files<'a>(
516
520
paths. append ( & mut sqlite_paths)
517
521
}
518
522
519
- Ok ( Box :: new ( paths. into_iter ( ) ) )
523
+ Ok ( paths)
520
524
}
521
525
522
526
/// Parsed command line options
0 commit comments