@@ -69,7 +69,7 @@ module.exports = function run(args, rawArgs) {
69
69
// set cypress geo location
70
70
utils . setGeolocation ( bsConfig , args ) ;
71
71
72
- // set spec timeout
72
+ // set spec timeout
73
73
utils . setSpecTimeout ( bsConfig , args ) ;
74
74
75
75
// accept the specs list from command line if provided
@@ -84,6 +84,9 @@ module.exports = function run(args, rawArgs) {
84
84
//accept the local from env variable if provided
85
85
utils . setLocal ( bsConfig , args ) ;
86
86
87
+ //set network logs
88
+ utils . setNetworkLogs ( bsConfig ) ;
89
+
87
90
// set Local Mode (on-demand/ always-on)
88
91
utils . setLocalMode ( bsConfig , args ) ;
89
92
@@ -99,8 +102,7 @@ module.exports = function run(args, rawArgs) {
99
102
// set the no-wrap
100
103
utils . setNoWrap ( bsConfig , args ) ;
101
104
102
- // set record feature caps
103
- utils . setRecordCaps ( bsConfig , args ) ;
105
+ const { packagesInstalled } = await packageInstaller . packageSetupAndInstaller ( bsConfig , config . packageDirName , { markBlockStart, markBlockEnd} ) ;
104
106
105
107
// set build tag caps
106
108
utils . setBuildTags ( bsConfig , args ) ;
@@ -129,8 +131,11 @@ module.exports = function run(args, rawArgs) {
129
131
logger . debug ( "Completed configs validation" ) ;
130
132
markBlockStart ( 'preArchiveSteps' ) ;
131
133
logger . debug ( "Started pre-archive steps" ) ;
134
+
132
135
//get the number of spec files
136
+ markBlockStart ( 'getNumberOfSpecFiles' ) ;
133
137
let specFiles = utils . getNumberOfSpecFiles ( bsConfig , args , cypressConfigFile ) ;
138
+ markBlockEnd ( 'getNumberOfSpecFiles' ) ;
134
139
135
140
bsConfig [ 'run_settings' ] [ 'video_config' ] = utils . getVideoConfig ( cypressConfigFile ) ;
136
141
@@ -140,6 +145,9 @@ module.exports = function run(args, rawArgs) {
140
145
// accept the number of parallels
141
146
utils . setParallels ( bsConfig , args , specFiles . length ) ;
142
147
148
+ // set record feature caps
149
+ utils . setRecordCaps ( bsConfig , args , cypressConfigFile ) ;
150
+
143
151
// warn if specFiles cross our limit
144
152
utils . warnSpecLimit ( bsConfig , args , specFiles , rawArgs , buildReportData ) ;
145
153
markBlockEnd ( 'preArchiveSteps' ) ;
@@ -153,7 +161,7 @@ module.exports = function run(args, rawArgs) {
153
161
154
162
logger . debug ( "Started caching npm dependencies." ) ;
155
163
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 ) {
157
165
logger . debug ( "Completed caching npm dependencies." )
158
166
markBlockEnd ( 'zip.packageInstaller' ) ;
159
167
@@ -409,8 +417,8 @@ module.exports = function run(args, rawArgs) {
409
417
updateCheckInterval : 1000 * 60 * 60 * 24 * 7 ,
410
418
} ) ;
411
419
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
414
422
// the check untill one interval period. It runs once.
415
423
if ( ! notifier . disabled && Date . now ( ) - notifier . config . get ( 'lastUpdateCheck' ) < 50 ) {
416
424
notifier . config . set ( 'lastUpdateCheck' , 0 ) ;
0 commit comments