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 {
93
93
this . _isRunning = true ;
94
94
95
95
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 ;
100
98
this . _progressCompleted . max = this . stepCount ;
101
99
this . suitesCount = enabledSuites . length ;
102
100
const runner = new BenchmarkRunner ( Suites , this ) ;
@@ -121,7 +119,7 @@ class MainBenchmarkClient {
121
119
await this . _awaitNextStep ( suite , test ) ;
122
120
}
123
121
124
- didRunTest ( ) {
122
+ didFinishSuite ( ) {
125
123
this . _finishedTestCount ++ ;
126
124
this . _progressCompleted . value = this . _finishedTestCount ;
127
125
}
Original file line number Diff line number Diff line change @@ -60,6 +60,8 @@ export class SuiteRunner {
60
60
61
61
performance . measure ( `suite-${ suiteName } ` , suiteStartLabel , suiteEndLabel ) ;
62
62
this . _validateSuiteTotal ( ) ;
63
+ if ( this . #client?. didFinishSuite )
64
+ await this . #client. didFinishSuite ( this . #suite) ;
63
65
}
64
66
65
67
_validateSuiteTotal ( ) {
You can’t perform that action at this time.
0 commit comments