test: stabilize coverage gate in CI
Rust CI Cargo tests, coverage, and badge generation passed.
Gitea/rust_realease/pipeline/head This commit looks good Details

This commit is contained in:
Dandaedre 2026-11-21 14:47:56 +01:00
parent 79bf210a15
commit 0bf23d70b5
1 changed files with 25 additions and 0 deletions

View File

@ -906,6 +906,31 @@ mod tests {
}
}
#[test]
fn preparation_options_are_rejected_before_project_acquisition() {
let error = run(Cli::parse_from([
"rust_realease",
"missing-project",
"--commit-preparation",
]))
.unwrap_err();
assert!(error
.to_string()
.contains("Preparation options require --prepare-repo"));
let error = run(Cli::parse_from([
"rust_realease",
"missing-project",
"--prepare-repo",
"--stop-after",
"metadata",
]))
.unwrap_err();
assert!(error
.to_string()
.contains("--prepare-repo is a separate mode"));
}
#[test]
fn release_message_inputs_and_recompile_flag_parse() {
let args = Cli::try_parse_from([