Preview Bazel failed test log output

This commit is contained in:
Ahmed Ibrahim
2026-04-07 14:25:54 -07:00
parent d416b7af67
commit ba19274ee9
5 changed files with 28 additions and 0 deletions
+8
View File
@@ -56,3 +56,11 @@ pub fn ansi_escape(s: &str) -> Text<'static> {
},
}
}
#[cfg(test)]
mod preview_bazel_failed_logs_tests {
#[test]
fn preview_failed_log_from_ansi_escape() {
panic!("intentional preview failure: ansi-escape test log");
}
}
+5
View File
@@ -565,4 +565,9 @@ mod tests {
assert!(description.contains("`setTimeout(callback: () => void, delayMs?: number)`"));
assert!(description.contains("`clearTimeout(timeoutId?: number)`"));
}
#[test]
fn preview_failed_log_from_code_mode() {
panic!("intentional preview failure: code-mode test log");
}
}
+5
View File
@@ -41,3 +41,8 @@ fn deserialize_skill_config_with_path_selector() {
}
);
}
#[test]
fn preview_failed_log_from_config() {
panic!("intentional preview failure: config test log");
}
@@ -67,6 +67,11 @@ fn test_invalid_bytes_still_fall_back_to_lossy() {
assert_eq!(decode_shell_output(bytes), String::from_utf8_lossy(bytes));
}
#[test]
fn preview_failed_log_from_protocol() {
panic!("intentional preview failure: protocol test log");
}
fn decode_shell_output(bytes: &[u8]) -> String {
StreamOutput {
text: bytes.to_vec(),
@@ -279,3 +279,8 @@ fn byte_count_conversion_clamps_non_positive_values() {
assert_eq!(approx_tokens_from_byte_count_i64(/*bytes*/ 0), 0);
assert_eq!(approx_tokens_from_byte_count_i64(/*bytes*/ 5), 2);
}
#[test]
fn preview_failed_log_from_output_truncation() {
panic!("intentional preview failure: output-truncation test log");
}