@@ -113,25 +113,29 @@ class App {
113113 return initResult . status ; // This is propagated per session in the CLI model.
114114 }
115115
116- startCucs ( ) { // eslint-disable-line class-methods-use-this
117- model . cuc . startCucs ( {
118- reset : this . reset ,
119- app : {
120- log : this . #log,
121- status : this . #status,
122- createCucumberArgs : this . #createCucumberArgs,
123- numberOfTestSessions : this . #numberOfTestSessions,
124- testSessionDoneCount : ( ) => this . #testSessionDoneCount,
125- incrementTestSessionDoneCount : ( ) => { this . #testSessionDoneCount += 1 ; } ,
126- testingProps : { runableSessionsProps : this . #testingProps. runableSessionsProps } ,
127- emissary : { shutdownEmissariesAfterTest : this . #emissary. shutdownEmissariesAfterTest } ,
128- debug : {
129- execArgvDebugString : this . #debug. execArgvDebugString ,
130- firstChildProcessInspectPort : this . #debug. firstChildProcessInspectPort
131- }
132- } ,
133- appInstance : this
134- } ) ;
116+ startCucs ( ) {
117+ if ( this . #testingProps) {
118+ model . cuc . startCucs ( {
119+ reset : this . reset ,
120+ app : {
121+ log : this . #log,
122+ status : this . #status,
123+ createCucumberArgs : this . #createCucumberArgs,
124+ numberOfTestSessions : this . #numberOfTestSessions,
125+ testSessionDoneCount : ( ) => this . #testSessionDoneCount,
126+ incrementTestSessionDoneCount : ( ) => { this . #testSessionDoneCount += 1 ; } ,
127+ testingProps : { runableSessionsProps : this . #testingProps. runableSessionsProps } ,
128+ emissary : { shutdownEmissariesAfterTest : this . #emissary. shutdownEmissariesAfterTest } ,
129+ debug : {
130+ execArgvDebugString : this . #debug. execArgvDebugString ,
131+ firstChildProcessInspectPort : this . #debug. firstChildProcessInspectPort
132+ }
133+ } ,
134+ appInstance : this
135+ } ) ;
136+ } else {
137+ this . #log. error ( 'this.#testingProps was falsy. It appears that the Tester was reset between calling initTester and startCucs' , { tags : [ 'app' ] } ) ;
138+ }
135139 }
136140
137141
0 commit comments