@@ -31,6 +31,7 @@ type QaScenarioRunCliOptions = {
3131 altModel ?: QaSuiteCommandOptions [ "alternateModel" ] ;
3232 concurrency ?: QaSuiteCommandOptions [ "concurrency" ] ;
3333 allowFailures ?: QaSuiteCommandOptions [ "allowFailures" ] ;
34+ failFast ?: QaSuiteCommandOptions [ "failFast" ] ;
3435 fast ?: QaSuiteCommandOptions [ "fastMode" ] ;
3536} ;
3637
@@ -57,6 +58,7 @@ const QA_RUN_PROFILE_ONLY_OPTIONS = [
5758 { optionName : "altModel" , flag : "--alt-model" } ,
5859 { optionName : "concurrency" , flag : "--concurrency" } ,
5960 { optionName : "allowFailures" , flag : "--allow-failures" } ,
61+ { optionName : "failFast" , flag : "--fail-fast" } ,
6062 { optionName : "fast" , flag : "--fast" } ,
6163] as const ;
6264
@@ -433,6 +435,7 @@ export function registerQaLabCli(program: Command) {
433435 "Write artifacts without setting a failing exit code when scenarios fail" ,
434436 false ,
435437 )
438+ . option ( "--fail-fast" , "Stop after the first failed QA scenario" )
436439 . option ( "--fast" , "Enable provider fast mode where supported" , false ) ;
437440 qaRun . action ( async ( opts : QaRunCliOptions , command : Command ) => {
438441 validateQaRunMode ( opts , command ) ;
@@ -451,6 +454,7 @@ export function registerQaLabCli(program: Command) {
451454 alternateModel : opts . altModel ,
452455 concurrency : opts . concurrency ,
453456 allowFailures : opts . allowFailures ,
457+ ...( opts . failFast ? { failFast : true } : { } ) ,
454458 fastMode : opts . fast ,
455459 } ) ;
456460 return ;
@@ -497,6 +501,7 @@ export function registerQaLabCli(program: Command) {
497501 "Write artifacts without setting a failing exit code when scenarios fail" ,
498502 false ,
499503 )
504+ . option ( "--fail-fast" , "Stop after the first failed QA scenario" )
500505 . option ( "--fast" , "Enable provider fast mode where supported" , false )
501506 . option (
502507 "--thinking <level>" ,
@@ -535,6 +540,7 @@ export function registerQaLabCli(program: Command) {
535540 enabledPluginIds : opts . enablePlugin ,
536541 concurrency : opts . concurrency ,
537542 allowFailures : opts . allowFailures ,
543+ ...( opts . failFast ? { failFast : true } : { } ) ,
538544 image : opts . image ,
539545 cpus : opts . cpus ,
540546 memory : opts . memory ,
0 commit comments