File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -93,10 +93,8 @@ class MainBenchmarkClient {
9393 this . _isRunning = true ;
9494
9595 const enabledSuites = Suites . filter ( ( suite ) => ! suite . disabled ) ;
96- const totalSubtestsCount = enabledSuites . reduce ( ( testsCount , suite ) => {
97- return testsCount + suite . tests . length ;
98- } , 0 ) ;
99- this . stepCount = params . iterationCount * totalSubtestsCount ;
96+ const totalSuitesCount = enabledSuites . length ;
97+ this . stepCount = params . iterationCount * totalSuitesCount ;
10098 this . _progressCompleted . max = this . stepCount ;
10199 this . suitesCount = enabledSuites . length ;
102100 const runner = new BenchmarkRunner ( Suites , this ) ;
@@ -121,7 +119,7 @@ class MainBenchmarkClient {
121119 await this . _awaitNextStep ( suite , test ) ;
122120 }
123121
124- didRunTest ( ) {
122+ didFinishSuite ( ) {
125123 this . _finishedTestCount ++ ;
126124 this . _progressCompleted . value = this . _finishedTestCount ;
127125 }
Original file line number Diff line number Diff line change @@ -60,6 +60,8 @@ export class SuiteRunner {
6060
6161 performance . measure ( `suite-${ suiteName } ` , suiteStartLabel , suiteEndLabel ) ;
6262 this . _validateSuiteTotal ( ) ;
63+ if ( this . #client?. didFinishSuite )
64+ await this . #client. didFinishSuite ( this . #suite) ;
6365 }
6466
6567 _validateSuiteTotal ( ) {
You can’t perform that action at this time.
0 commit comments