File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -138,6 +138,9 @@ for (let testFile of testFiles) {
138
138
return coreRenderProcessTestSuites
139
139
}
140
140
141
+
142
+ function getPackageTestSuites ( ) {
143
+
141
144
// Build an array of functions, each running tests for a different bundled package
142
145
const packageTestSuites = [ ]
143
146
for ( let packageName in CONFIG . appMetadata . packageDependencies ) {
@@ -200,6 +203,10 @@ for (let packageName in CONFIG.appMetadata.packageDependencies) {
200
203
} )
201
204
}
202
205
206
+ return packageTestSuites
207
+ }
208
+
209
+
203
210
function runBenchmarkTests ( callback ) {
204
211
const benchmarksPath = path . join ( CONFIG . repositoryRootPath , 'benchmarks' )
205
212
const testArguments = [ '--benchmark-test' , benchmarksPath ]
@@ -260,15 +267,15 @@ function requestedTestSuites (platform) {
260
267
}
261
268
262
269
// Package tests
263
- if ( packageAll ) {
264
- suites . push ( ...packageTestSuites )
270
+ if ( packageAll ) {
271
+ suites . push ( ...getPackageTestSuites ( ) )
265
272
} else {
266
273
// split
267
274
if ( packages1 ) {
268
- suites . push ( ...packageTestSuites . slice ( 0 , PACKAGES_TO_TEST_IN_PARALLEL ) )
275
+ suites . push ( ...getPackageTestSuites ( ) . slice ( 0 , PACKAGES_TO_TEST_IN_PARALLEL ) )
269
276
}
270
277
if ( packages2 ) {
271
- suites . push ( ...packageTestSuites . slice ( PACKAGES_TO_TEST_IN_PARALLEL ) )
278
+ suites . push ( ...getPackageTestSuites ( ) . slice ( PACKAGES_TO_TEST_IN_PARALLEL ) )
272
279
}
273
280
}
274
281
You can’t perform that action at this time.
0 commit comments