@@ -69,7 +69,7 @@ module.exports = function run(args, rawArgs) {
6969 // set cypress geo location
7070 utils . setGeolocation ( bsConfig , args ) ;
7171
72- // set spec timeout
72+ // set spec timeout
7373 utils . setSpecTimeout ( bsConfig , args ) ;
7474
7575 // accept the specs list from command line if provided
@@ -84,6 +84,9 @@ module.exports = function run(args, rawArgs) {
8484 //accept the local from env variable if provided
8585 utils . setLocal ( bsConfig , args ) ;
8686
87+ //set network logs
88+ utils . setNetworkLogs ( bsConfig ) ;
89+
8790 // set Local Mode (on-demand/ always-on)
8891 utils . setLocalMode ( bsConfig , args ) ;
8992
@@ -99,8 +102,7 @@ module.exports = function run(args, rawArgs) {
99102 // set the no-wrap
100103 utils . setNoWrap ( bsConfig , args ) ;
101104
102- // set record feature caps
103- utils . setRecordCaps ( bsConfig , args ) ;
105+ const { packagesInstalled } = await packageInstaller . packageSetupAndInstaller ( bsConfig , config . packageDirName , { markBlockStart, markBlockEnd} ) ;
104106
105107 // set build tag caps
106108 utils . setBuildTags ( bsConfig , args ) ;
@@ -129,8 +131,11 @@ module.exports = function run(args, rawArgs) {
129131 logger . debug ( "Completed configs validation" ) ;
130132 markBlockStart ( 'preArchiveSteps' ) ;
131133 logger . debug ( "Started pre-archive steps" ) ;
134+
132135 //get the number of spec files
136+ markBlockStart ( 'getNumberOfSpecFiles' ) ;
133137 let specFiles = utils . getNumberOfSpecFiles ( bsConfig , args , cypressConfigFile ) ;
138+ markBlockEnd ( 'getNumberOfSpecFiles' ) ;
134139
135140 bsConfig [ 'run_settings' ] [ 'video_config' ] = utils . getVideoConfig ( cypressConfigFile ) ;
136141
@@ -140,6 +145,9 @@ module.exports = function run(args, rawArgs) {
140145 // accept the number of parallels
141146 utils . setParallels ( bsConfig , args , specFiles . length ) ;
142147
148+ // set record feature caps
149+ utils . setRecordCaps ( bsConfig , args , cypressConfigFile ) ;
150+
143151 // warn if specFiles cross our limit
144152 utils . warnSpecLimit ( bsConfig , args , specFiles , rawArgs , buildReportData ) ;
145153 markBlockEnd ( 'preArchiveSteps' ) ;
@@ -153,7 +161,7 @@ module.exports = function run(args, rawArgs) {
153161
154162 logger . debug ( "Started caching npm dependencies." ) ;
155163 markBlockStart ( 'zip.packageInstaller' ) ;
156- return packageInstaller . packageWrapper ( bsConfig , config . packageDirName , config . packageFileName , md5data , { markBlockStart, markBlockEnd} ) . then ( function ( packageData ) {
164+ return packageInstaller . packageWrapper ( bsConfig , config . packageDirName , config . packageFileName , md5data , { markBlockStart, markBlockEnd} , packagesInstalled ) . then ( function ( packageData ) {
157165 logger . debug ( "Completed caching npm dependencies." )
158166 markBlockEnd ( 'zip.packageInstaller' ) ;
159167
@@ -409,8 +417,8 @@ module.exports = function run(args, rawArgs) {
409417 updateCheckInterval : 1000 * 60 * 60 * 24 * 7 ,
410418 } ) ;
411419
412- // Checks for update on first run.
413- // Set lastUpdateCheck to 0 to spawn the check update process as notifier sets this to Date.now() for preventing
420+ // Checks for update on first run.
421+ // Set lastUpdateCheck to 0 to spawn the check update process as notifier sets this to Date.now() for preventing
414422 // the check untill one interval period. It runs once.
415423 if ( ! notifier . disabled && Date . now ( ) - notifier . config . get ( 'lastUpdateCheck' ) < 50 ) {
416424 notifier . config . set ( 'lastUpdateCheck' , 0 ) ;
0 commit comments