export_test

Function export_test 

Source
pub fn export_test(test_name: &str, output: Option<PathBuf>) -> Result<()>
Expand description

Build a self-extracting .run file for the given test.

test_name must match a #[ktstr_test] registration’s name field exactly (case-sensitive). Use cargo nextest list to enumerate names; strip the <binary>:: prefix the way cargo ktstr show-thresholds does.

output is the destination path. None defaults to <test_name>.run in the current directory. The output file is written with mode 0o755 so the operator can invoke it directly.