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
Rust CI Cargo tests, coverage, and badge generation passed.
Gitea/rust_realease/pipeline/head This commit looks good
Details
This commit is contained in:
parent
79bf210a15
commit
0bf23d70b5
25
src/cli.rs
25
src/cli.rs
|
|
@ -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([
|
||||
|
|
|
|||
Loading…
Reference in New Issue