You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kiro-cli e2e tests: change description for input method, Added test case automation for kiro-cli init zsh pre, kiro-cli init zsh -v post, kiro-cli init nu pre,kiro-cli init -v nu post sub commands.
println!("\n🔍 Testing kiro-cli init -v fish pre ... | Description: Tests the <code> kiro-cli init -v fish pre </code> subcommand to verify verbose fish -v pre response.");
612
+
613
+
println!("\n🔍 Executing 'kiro-cli init -v fish pre' subcommand...");
614
+
let response = q_chat_helper::execute_q_subcommand("kiro-cli",&["init","-v","fish","pre"])?;
615
+
616
+
println!("📝 FULL OUTPUT:");
617
+
println!("{}", response);
618
+
println!("📝 END OUTPUT");
619
+
620
+
assert!(response.contains("set -g Q_SHELL"),"Expected 'set -g Q_SHELL' in the output");
621
+
assert!(response.contains("SHOULD_QTERM_LAUNCH"),"Expected 'SHOULD_QTERM_LAUNCH' in the output");
622
+
assert!(response.contains("command mkdir -p"),"Expected 'command mkdir -p' in the output");
623
+
assert!(response.contains("builtin contains"),"Expected 'builtin contains' in the output");
624
+
assert!(response.contains("Q_NEW_SESSION"),"Expected 'Q_NEW_SESSION' in the output");
625
+
assert!(response.contains("Q_PARENT"),"Expected 'Q_PARENT' in the output");
626
+
assert!(response.contains("kiro-cli-term"),"Expected 'kiro-cli-term' in the output");
627
+
assert!(response.contains("Q_IS_LOGIN_SHELL"),"Expected 'Q_IS_LOGIN_SHELL' in the output");
628
+
assert!(response.contains("exec bash -c"),"Expected 'exec bash -c' in the output");
629
+
assert!(!response.contains("fig_preexec"),"fish pre should not contain fig_preexec hooks");
630
+
631
+
println!("✅ Kiro Cli init -v fish pre subcommand executed successfully!");
println!("\n🔍 Testing kiro-cli init -v fish post ... | Description: Tests the <code> kiro-cli init -v fish post </code> subcommand to verify verbose fish -v post response.");
640
+
641
+
println!("\n🔍 Executing 'kiro-cli init -v fish post' subcommand...");
642
+
let response = q_chat_helper::execute_q_subcommand("kiro-cli",&["init","-v","fish","post"])?;
643
+
644
+
println!("📝 FULL OUTPUT:");
645
+
println!("{}", response);
646
+
println!("📝 END OUTPUT");
647
+
648
+
assert!(response.contains("set -g Q_SHELL"),"Expected 'set -g Q_SHELL' in the output");
649
+
assert!(response.contains("function fig_osc"),"Expected 'function fig_osc' in the output");
650
+
assert!(response.contains("function fig_copy_fn"),"Expected 'function fig_copy_fn' in the output");
651
+
assert!(response.contains("function fig_wrap_prompt"),"Expected 'function fig_wrap_prompt' in the output");
652
+
assert!(response.contains("function fig_preexec"),"Expected 'function fig_preexec' in the output");
653
+
assert!(response.contains("function fig_precmd"),"Expected 'function fig_precmd' in the output");
654
+
assert!(response.contains("--on-event fish_preexec"),"Expected '--on-event fish_preexec' in the output");
655
+
assert!(response.contains("--on-event fish_prompt"),"Expected '--on-event fish_prompt' in the output");
656
+
assert!(response.contains("QTERM_SESSION_ID"),"Expected 'QTERM_SESSION_ID' in the output");
657
+
assert!(!response.contains("SHOULD_QTERM_LAUNCH"),"fish post should not contain terminal launch logic");
658
+
659
+
println!("✅ Kiro Cli init -v fish post subcommand executed successfully!");
0 commit comments