@@ -132,20 +132,20 @@ export class TestplaneToolAdapter implements ToolAdapter {
132132
133133 async readTests ( paths : string [ ] , cliTool : CommanderStatic ) : Promise < TestplaneTestCollectionAdapter > {
134134 const { TestplaneTestCollectionAdapter} = await import ( '../../test-collection/testplane' ) ;
135- const { grep, set : sets , browser : browsers } = cliTool ;
135+ const { grep, tag , set : sets , browser : browsers } = cliTool ;
136136 const replMode = getReplModeOption ( cliTool ) ;
137137
138- const testCollection = await this . _tool . readTests ( paths , { grep, sets, browsers, replMode} ) ;
138+ const testCollection = await this . _tool . readTests ( paths , { grep, sets, tag , browsers, replMode} ) ;
139139
140140 return TestplaneTestCollectionAdapter . create ( testCollection , this . _tool . config . saveHistoryMode ) ;
141141 }
142142
143143 async run ( testCollectionAdapter : TestplaneTestCollectionAdapter , tests : TestSpec [ ] = [ ] , cliTool : CommanderStatic ) : Promise < boolean > {
144- const { grep, set : sets , browser : browsers , devtools = false , local = false } = cliTool ;
144+ const { grep, tag , set : sets , browser : browsers , devtools = false , local = false } = cliTool ;
145145 const replMode = getReplModeOption ( cliTool ) ;
146146 const runner = createTestRunner ( testCollectionAdapter . original , tests ) ;
147147
148- return runner . run ( ( collection ) => this . _tool . run ( collection , { grep, sets, browsers, devtools, replMode, local} ) ) ;
148+ return runner . run ( ( collection ) => this . _tool . run ( collection , { grep, sets, tag , browsers, devtools, replMode, local} ) ) ;
149149 }
150150
151151 async runWithoutRetries ( ...args : RunTestArgs ) : Promise < boolean > {
0 commit comments