requirements.test-coverage.processes.progress.preparation
Requirements index · View definition
Requirement
During coverage-data preparation, on a terminal enabled under
, Habeas MUST display updating activity and identify the current preparation stage.
Rationale
The tests adequately check requirements.test-coverage.processes.progress.preparation.
Obligations. On a terminal enabled under processes.progress.terminal, preparation must (a) display updating activity and (b) identify the current preparation stage.
Mapping to tests
- Stage identification.
src/execution_coverage/progress.rs#mod[tests]/fn[stage_and_conversion_counts_are_visible_then_cleared]uses a recording terminal. It asserts that the initial stage text (“Recording inputs”) is drawn. It then callsstage("Capturing coverage maps")and asserts the new stage text is drawn.tests/execution_coverage.rs#fn[coverage_progress_on_a_pty_preserves_reports_and_plain_output_policy]runs the real binary on a PTY withTERM=xterm. It asserts that stderr contains both real stage labels, “Preparing coverage: recording inputs” and “Preparing coverage: capturing maps”. Those are the stage labels the implementation sets inProgress::preparationand inrunner.rs#fn[run].
- Updating activity.
progress.rs#mod[tests]/fn[preparation_activity_keeps_updating_without_a_stage_change]holds one stage and polls the recorded frames. It requires at least two distinct frames containing the stage text, and each must carry an elapsed-time marker. This shows the display keeps changing without a stage change, which is the “updating activity” obligation. The PTY test also asserts that escape sequences appear, so the display updates in place. - Enabled-terminal condition. The PTY test covers the enabled case (
xterm). It also coversdumb, where it asserts no escape sequences. The negative case belongs toprocesses.progress.terminal, which is cited context and not reassessed here.
Result. Both MUST obligations have tests that exercise the behavior and assert the outcome, at unit level and end to end. I found no plausible violation that these tests would accept. A stage that is never shown, or a static display that never updates, would fail them.
Inputs
Implementation
Input 6: outline src/execution_coverage/progress.rs impl[Progress]/fn[preparation]
- File:
src/execution_coverage/progress.rs - Selector:
impl[Progress]/fn[preparation] - Kind:
fn src/execution_coverage/progress.rs:12–15
// {impl}`requirements.test-coverage.processes.progress.preparation`
pub(super) fn preparation() -> Self {
Self::new("Preparing coverage: recording inputs", None)
}
Input 7: outline src/execution_coverage/runner.rs fn[run]
- File:
src/execution_coverage/runner.rs - Selector:
fn[run] - Kind:
fn src/execution_coverage/runner.rs:466–816
// {impl}`requirements.test-coverage.run`
// {impl}`requirements.test-coverage.storage`
// {impl}`requirements.test-coverage.processes.reports`
// {impl}`requirements.test-coverage.processes.progress.preparation`
// {impl}`requirements.test-coverage.storage.provenance`
// {impl}`requirements.test-coverage.storage.configuration`
// {impl}`requirements.test-coverage.storage.outcomes`
// {impl}`requirements.test-coverage.failures`
pub fn run(project: &Path, supplied: &[String]) -> io::Result<i32> {
let root = configuration::workspace_root(project)?;
let invocation = std::env::current_dir()?;
let args = if supplied.is_empty() {
vec!["--workspace".to_owned()]
} else {
supplied.to_vec()
};
verify_configuration(&root, &args)?;
let compiler_command = cargo_override_setting(&invocation, &args, "rustc")?
.or(std::env::var("RUSTC")
.ok()
.or(std::env::var("CARGO_BUILD_RUSTC").ok()))
.or(cargo_build_setting(&invocation, "rustc")?)
.unwrap_or_else(|| "rustc".into());
let (cov, profdata, rustc) = tools(&compiler_command)?;
let mut metadata_command = Command::new("cargo");
metadata_command
.args(["metadata", "--format-version", "1", "--no-deps"])
.current_dir(&invocation);
for flag in [
"--locked",
"--offline",
"--frozen",
"--all-features",
"--no-default-features",
] {
if has(&args, flag) {
metadata_command.arg(flag);
}
}
for flag in ["--manifest-path"] {
if let Some(value) = option(&args, &[flag]) {
metadata_command.arg(flag).arg(value);
}
}
let requested_features = features(&args);
if !requested_features.is_empty() {
metadata_command.arg("--features").arg(requested_features);
}
for value in options(&args, &["--config"]) {
metadata_command.arg("--config").arg(value);
}
let metadata: serde_json::Value = serde_json::from_str(&output(&mut metadata_command)?)?;
if metadata["workspace_root"].as_str().map(Path::new) != Some(root.as_path()) {
return Err(io::Error::other(
"--manifest-path selects a different Cargo workspace; cannot establish its collector configuration from this Habeas project",
));
}
let target = option(&args, &["--target-dir"])
.map(PathBuf::from)
.unwrap_or_else(|| PathBuf::from(metadata["target_directory"].as_str().unwrap()));
let target = if target.is_absolute() {
target
} else {
invocation.join(target)
};
fs::create_dir_all(&target)?;
let target = fs::canonicalize(target)?;
let dir = target
.join("habeas/coverage")
.join(uuid::Uuid::new_v4().to_string());
fs::create_dir_all(dir.join("attempts"))?;
fs::create_dir_all(dir.join("tools"))?;
fs::create_dir_all(dir.join("setup"))?;
// A per-run copy avoids races with concurrent builds of the CLI itself.
let executable = std::env::current_exe()?;
// Keep the compiler-wrapper path stable for identical CLI builds, so a
// focused rerun can reuse Cargo's instrumented compilation cache.
let executable_metadata = fs::metadata(&executable)?;
let compiler_key = digest(
format!(
"{}:{}:{:?}",
executable.display(),
executable_metadata.len(),
executable_metadata.modified()?
)
.as_bytes(),
);
let compiler = target
.join("habeas/tools")
.join(compiler_key)
.join(format!("habeas-rustc{}", std::env::consts::EXE_SUFFIX));
let collector = compiler
.parent()
.unwrap()
.join(format!("habeas{}", std::env::consts::EXE_SUFFIX));
if !collector.is_file() {
fs::create_dir_all(collector.parent().unwrap())?;
let temporary = collector.with_extension(uuid::Uuid::new_v4().to_string());
fs::copy(&executable, &temporary)?;
fs::rename(temporary, &collector)?;
}
if !compiler.is_file() {
fs::create_dir_all(compiler.parent().unwrap())?;
let temporary = compiler.with_extension(uuid::Uuid::new_v4().to_string());
fs::copy(&executable, &temporary)?;
fs::rename(temporary, &compiler)?;
}
let config = build_configuration(&invocation, &args, &rustc)?;
let mut inputs = input_hashes(&workspace_inputs(&root, &target)?)?;
inputs.extend(input_hashes(&super::cargo_configs(&invocation))?);
for value in options(&args, &["--config"])
.into_iter()
.filter(|value| !value.contains('='))
{
inputs.extend(input_hashes(&[invocation.join(value)])?);
}
let mut run = Run {
schema: 1,
id: dir.file_name().unwrap().to_string_lossy().into_owned(),
started: now(),
command: std::iter::once("cargo nextest run".into())
.chain(args.iter().cloned())
.collect(),
selection: args.clone(),
configuration: digest(&serde_json::to_vec(&config)?),
configuration_inputs: config,
sources: BTreeMap::new(),
inputs,
environment_inputs: BTreeMap::new(),
revision: output(
Command::new("git")
.args(["rev-parse", "HEAD"])
.current_dir(&root),
)
.ok(),
dirty: output(
Command::new("git")
.args(["status", "--porcelain"])
.current_dir(&root),
)
.ok()
.map(|status| !status.is_empty()),
outcome: "interrupted".into(),
diagnostics: Vec::new(),
};
save(&dir.join("run.json"), &run)?;
let interrupts = Interrupts::new()?;
let instrumented = target.join("habeas/instrumented").join(&run.configuration);
let mut paths = vec![collector.parent().unwrap().to_path_buf()];
paths.extend(std::env::split_paths(
&std::env::var_os("PATH").unwrap_or_default(),
));
// Keep compilation in its own cache, including when native Cargo settings
// select an external build directory. Coverage storage keeps the chosen target.
let forwarded = {
let split = args
.iter()
.position(|arg| arg == "--")
.unwrap_or(args.len());
let mut forwarded = Vec::new();
let mut index = 0;
while index < split {
if args[index] == "--target-dir" {
index += 2;
continue;
}
if args[index].starts_with("--target-dir=") {
index += 1;
continue;
}
forwarded.push(args[index].clone());
index += 1;
}
forwarded.push(format!("--target-dir={}", instrumented.display()));
forwarded.push("--config".into());
forwarded.push(format!(
"build.build-dir={}",
toml::Value::String(instrumented.to_string_lossy().into_owned())
));
forwarded.extend_from_slice(&args[split..]);
forwarded
};
let mut command = Command::new("cargo");
command
.args(["nextest", "run"])
.args(forwarded)
.current_dir(&invocation)
.env("HABEAS_COVERAGE_RUN", &dir)
.env("LLVM_PROFILE_FILE", dir.join("setup/%p-%m.profraw"))
.env("CARGO_TARGET_DIR", &instrumented)
.env("CARGO_BUILD_BUILD_DIR", &instrumented)
.env("RUSTC_WORKSPACE_WRAPPER", &compiler)
.env(
"HABEAS_COVERAGE_FEATURE_LEDGER",
instrumented.join("features"),
)
.env(
"PATH",
std::env::join_paths(paths).map_err(io::Error::other)?,
);
if let Some(previous) = std::env::var_os("RUSTC_WORKSPACE_WRAPPER") {
command.env("HABEAS_PREVIOUS_WORKSPACE_WRAPPER", previous);
}
// The instrumented cache is for this compilation. Tests that invoke Cargo
// must still observe the caller's build environment.
let test_environment = [
"CARGO_TARGET_DIR",
"CARGO_BUILD_BUILD_DIR",
"RUSTC_WORKSPACE_WRAPPER",
]
.map(|name| (name, std::env::var(name).ok()))
.into_iter()
.collect::<BTreeMap<_, _>>();
command.env(
"HABEAS_COVERAGE_TEST_BUILD_ENV",
serde_json::to_string(&test_environment)?,
);
// Capture dep-info and source text after compilation but before any test
// process can mutate source or generated inputs.
let mut build = Command::new(command.get_program());
let mut build_args = preparation_args(
&command
.get_args()
.map(|arg| arg.to_os_string())
.collect::<Vec<_>>(),
);
let separator = build_args
.iter()
.position(|arg| arg == "--")
.unwrap_or(build_args.len());
if !has(&args, "--no-run") {
build_args.insert(separator, "--no-run".into());
}
build.args(build_args).current_dir(&invocation);
for (key, value) in command.get_envs() {
match value {
Some(value) => {
build.env(key, value);
}
None => {
build.env_remove(key);
}
}
}
let build_status = match interrupts.execute(&mut build) {
Ok(status) => status,
Err(error) => {
run.outcome = "failed".into();
run.diagnostics
.push(format!("Cannot start instrumented compilation: {error}"));
save(&dir.join("run.json"), &run)?;
return Err(error);
}
};
if !build_status.success() {
run.outcome = if interrupts.happened() {
"interrupted"
} else {
"failed"
}
.into();
run.diagnostics.push("Instrumented compilation or nextest configuration validation failed before test startup.".into());
save(&dir.join("run.json"), &run)?;
return Ok(code(build_status));
}
let preparation: io::Result<()> = (|| {
let progress = Progress::preparation();
capture_inputs(&root, &target, &instrumented, &mut run)?;
let mut features = BTreeMap::new();
for path in walk(&instrumented.join("features"), &[])? {
let (package, enabled): (String, std::collections::BTreeSet<String>) = load(&path)?;
features.insert(package, enabled);
}
run.configuration_inputs
.insert("enabled-features".into(), serde_json::to_string(&features)?);
run.configuration = digest(&serde_json::to_vec(&run.configuration_inputs)?);
progress.stage("Preparing coverage: capturing maps");
snapshot_maps(&instrumented, &dir, &cov)
})();
if let Err(error) = preparation {
run.outcome = if interrupts.happened() {
"interrupted"
} else {
"failed"
}
.into();
let message = format!("Coverage preparation failed before test startup: {error}");
run.diagnostics.push(message.clone());
save(&dir.join("run.json"), &run)?;
return Err(io::Error::other(message));
}
save(&dir.join("run.json"), &run)?;
if interrupts.happened() {
return Ok(130);
}
let execution = interrupts.execute(&mut command);
let status = match execution {
Ok(status) => {
run.outcome = if interrupts.happened() || status.code().is_none() {
"interrupted"
} else if status.success() {
"success"
} else {
"failed"
}
.into();
if interrupts.happened() {
130
} else {
code(status)
}
}
Err(error) => {
run.diagnostics.push(error.to_string());
run.outcome = "failed".into();
1
}
};
let collection = finish(&root, &dir, &cov, &profdata, &mut run);
if let Err(error) = collection {
run.diagnostics.push(error.to_string());
if run.outcome == "success" {
run.outcome = "failed".into();
}
}
if fs::read_dir(dir.join("attempts"))?.next().is_none() {
run.diagnostics.push(
if has(&args, "--no-run") {
"Compilation-only run (--no-run): no test attempt started."
} else if status == 0 || status == 4 {
// Nextest's NO_TESTS_RUN exit code.
"Empty test selection: no test attempt started."
} else {
"Nextest stopped before test startup; no test attempt was recorded."
}
.into(),
);
}
save(&dir.join("run.json"), &run)?;
eprintln!("Coverage retained in {}", dir.display());
for diagnostic in &run.diagnostics {
eprintln!("coverage: {diagnostic}");
}
if status != 0 {
Ok(status)
} else if run.outcome == "success" {
Ok(0)
} else {
Ok(1)
}
}
Tests
Input 3: outline src/execution_coverage/progress.rs mod[tests]/fn[stage_and_conversion_counts_are_visible_then_cleared]
- File:
src/execution_coverage/progress.rs - Selector:
mod[tests]/fn[stage_and_conversion_counts_are_visible_then_cleared] - Kind:
fn src/execution_coverage/progress.rs:164–212
// {test}`requirements.test-coverage.processes.progress`
// {test}`requirements.test-coverage.processes.progress.preparation`
// {test}`requirements.test-coverage.processes.progress.terminal`
#[test]
fn stage_and_conversion_counts_are_visible_then_cleared() {
let terminal = RecordingTerm::default();
let target = || Some(ProgressDrawTarget::term_like(Box::new(terminal.clone())));
{
let preparation = Progress::with_target("Recording inputs", None, target());
assert!(terminal.text.lock().unwrap().contains("Recording inputs"));
preparation.stage("Capturing coverage maps");
assert!(
terminal
.text
.lock()
.unwrap()
.contains("Capturing coverage maps")
);
let before_drop = *terminal.clears.lock().unwrap();
drop(preparation);
assert!(*terminal.clears.lock().unwrap() > before_drop);
}
let cleared = *terminal.clears.lock().unwrap();
assert!(cleared > 0);
for total in [0, 2] {
let conversion = Progress::with_target("Converting coverage", Some(total), target());
let bar = conversion.bar.as_ref().unwrap();
assert_eq!(bar.position(), 0);
for expected in 1..=total {
conversion.completed();
bar.force_draw();
assert_eq!(bar.position(), expected as u64);
let text = terminal.text.lock().unwrap();
assert!(
text.contains(&format!("{expected}/{total} attempts")),
"{text}"
);
assert!(text.contains("[00:00:"));
assert!(!text.contains("\x1b["), "display must be monochrome");
}
let before_drop = *terminal.clears.lock().unwrap();
drop(conversion);
assert!(
*terminal.clears.lock().unwrap() > before_drop,
"completed and empty displays must both clear on drop"
);
}
assert!(*terminal.clears.lock().unwrap() > cleared);
}
Input 4: outline src/execution_coverage/progress.rs mod[tests]/fn[preparation_activity_keeps_updating_without_a_stage_change]
- File:
src/execution_coverage/progress.rs - Selector:
mod[tests]/fn[preparation_activity_keeps_updating_without_a_stage_change] - Kind:
fn src/execution_coverage/progress.rs:214–243
// {test}`requirements.test-coverage.processes.progress.preparation`
#[test]
fn preparation_activity_keeps_updating_without_a_stage_change() {
let terminal = RecordingTerm::default();
let _preparation = Progress::with_target(
"Recording inputs",
None,
Some(ProgressDrawTarget::term_like(Box::new(terminal.clone()))),
);
let deadline = std::time::Instant::now() + Duration::from_secs(2);
loop {
let frames = terminal
.frames
.lock()
.unwrap()
.iter()
.filter(|frame| frame.contains("Recording inputs"))
.cloned()
.collect::<std::collections::BTreeSet<_>>();
if frames.len() >= 2 {
assert!(frames.iter().all(|frame| frame.contains("[00:00:")));
break;
}
assert!(
std::time::Instant::now() < deadline,
"preparation activity did not update: {frames:?}"
);
std::thread::sleep(Duration::from_millis(20));
}
}
Input 5: outline tests/execution_coverage.rs fn[coverage_progress_on_a_pty_preserves_reports_and_plain_output_policy]
- File:
tests/execution_coverage.rs - Selector:
fn[coverage_progress_on_a_pty_preserves_reports_and_plain_output_policy] - Kind:
fn tests/execution_coverage.rs:104–295
// {test}`requirements.test-coverage.processes.progress`
// {test}`requirements.test-coverage.processes.progress.preparation`
// {test}`requirements.test-coverage.processes.progress.terminal`
#[cfg(target_os = "linux")]
#[test]
fn coverage_progress_on_a_pty_preserves_reports_and_plain_output_policy() {
use std::io::Read;
use std::os::fd::FromRawFd;
#[link(name = "util")]
unsafe extern "C" {
fn openpty(
master: *mut std::ffi::c_int,
slave: *mut std::ffi::c_int,
name: *mut std::ffi::c_char,
termios: *const std::ffi::c_void,
winsize: *const std::ffi::c_void,
) -> std::ffi::c_int;
}
let temp = fixture();
let root = temp.path();
let source = fs::read_to_string(root.join("src/lib.rs")).unwrap();
fs::write(root.join("src/lib.rs"), format!("{source}\n#[test] fn deliberate_failure() {{ panic!(\"fixture failure\"); }}\nunsafe extern \"C\" {{ fn _exit(status: i32) -> !; }}\n#[test] fn missing_profile() {{ unsafe {{ _exit(0) }} }}\n")).unwrap();
let run_on_pty = |term: &str, filter: &str| {
let mut master = -1;
let mut slave = -1;
// The returned descriptors are owned by this test and transferred
// exactly once into File. Default terminal settings are sufficient.
assert_eq!(
unsafe {
openpty(
&mut master,
&mut slave,
std::ptr::null_mut(),
std::ptr::null(),
std::ptr::null(),
)
},
0
);
let mut master = unsafe { fs::File::from_raw_fd(master) };
let slave = unsafe { fs::File::from_raw_fd(slave) };
let reader = std::thread::spawn(move || {
let mut output = Vec::new();
if let Err(error) = master.read_to_end(&mut output) {
// Linux returns EIO when the last slave descriptor closes.
assert_eq!(error.raw_os_error(), Some(5));
}
output
});
let child = Command::new(env!("CARGO_BIN_EXE_habeas"))
.args(["coverage", "--", "-E", filter, "--color=never"])
.current_dir(root)
.env("CARGO_NET_OFFLINE", "true")
.env("TERM", term)
.env("NO_COLOR", "1")
.env_remove("CARGO_TARGET_DIR")
.env_remove("CARGO_BUILD_TARGET_DIR")
.env_remove("RUSTC_WORKSPACE_WRAPPER")
.env_remove("HABEAS_PREVIOUS_WORKSPACE_WRAPPER")
.env_remove("HABEAS_COVERAGE_RUN")
.env_remove("HABEAS_COVERAGE_FEATURE_LEDGER")
.stdin(std::process::Stdio::null())
.stdout(std::process::Stdio::piped())
.stderr(slave)
.spawn()
.unwrap();
let mut output = child.wait_with_output().unwrap();
output.stderr = reader.join().unwrap();
output
};
let assert_conversion_cleared = |text: &str| {
let count = text.rfind("1/1 attempts").unwrap();
let location = text.find("Coverage retained in ").unwrap();
assert!(text[count..location].contains("\x1b[2K"), "{text}");
assert!(
!text[location..].contains("\x1b["),
"final reports must remain plain and readable: {text}"
);
};
for term in ["xterm", "dumb"] {
let output = run_on_pty(term, "test(second)");
assert_success(&output);
let text = String::from_utf8_lossy(&output.stderr);
if term == "xterm" {
assert!(
text.contains("Preparing coverage: recording inputs"),
"{text}"
);
assert!(
text.contains("Preparing coverage: capturing maps"),
"{text}"
);
assert!(text.contains("Converting coverage"), "{text}");
assert!(text.contains("1/1 attempts"), "{text}");
assert!(text.contains("[00:"), "{text}");
assert!(
text.contains("\x1b["),
"PTY progress should update in place"
);
assert!(!text.contains("\x1b[3"), "NO_COLOR must suppress color");
assert_conversion_cleared(&text);
} else {
assert!(!text.contains("Converting coverage"), "{text}");
assert!(!text.contains("\x1b["), "{text}");
}
assert!(text.contains("Coverage retained in "), "{text}");
let saved = runs(root);
let records = attempts(&saved.last().unwrap().0);
assert_eq!(records.len(), 1);
assert_eq!(records[0]["outcome"], "success");
assert_eq!(records[0]["processes"].as_array().unwrap().len(), 1);
assert!(
!records[0]["processes"][0]["lines"]
.as_object()
.unwrap()
.is_empty()
);
}
let output = coverage(root, &["-E", "test(second)", "--color=never"]);
assert_success(&output);
let text = String::from_utf8_lossy(&output.stderr);
assert!(!text.contains("Converting coverage"), "{text}");
assert!(!text.contains("\x1b["), "{text}");
let saved = runs(root);
let first = attempts(&saved[0].0);
for (run, _) in &saved[1..] {
let records = attempts(run);
assert_eq!(
records[0]["processes"][0]["lines"],
first[0]["processes"][0]["lines"]
);
assert_eq!(
records[0]["processes"][0]["functions"],
first[0]["processes"][0]["functions"]
);
}
for (filter, succeeds, outcome, processes) in [
("test(child_process)", true, "success", 2),
("test(deliberate_failure)", false, "failed", 1),
("test(missing_profile)", false, "success", 0),
] {
let output = run_on_pty("xterm", filter);
assert_eq!(
output.status.success(),
succeeds,
"{}",
String::from_utf8_lossy(&output.stderr)
);
let text = String::from_utf8_lossy(&output.stderr);
assert_conversion_cleared(&text);
if processes == 0 {
assert!(text.contains("coverage: "), "{text}");
assert!(
text.contains("partial profiles and reports have been retained"),
"{text}"
);
}
let saved = runs(root);
let records = attempts(&saved.last().unwrap().0);
assert_eq!(records.len(), 1);
assert_eq!(records[0]["outcome"], outcome);
assert_eq!(records[0]["processes"].as_array().unwrap().len(), processes);
for process in records[0]["processes"].as_array().unwrap() {
assert!(!process["lines"].as_object().unwrap().is_empty());
assert!(process["functions"].is_array());
}
}
// An error during preparation must also clear the stage before the CLI
// prints its diagnostic, without manufacturing test attempts.
use std::os::unix::fs::PermissionsExt;
fs::write(
root.join("build.rs"),
"fn main() { println!(\"cargo::rerun-if-changed=input.data\"); }\n",
)
.unwrap();
let input = root.join("input.data");
fs::write(&input, "unreadable input").unwrap();
fs::set_permissions(&input, fs::Permissions::from_mode(0o000)).unwrap();
let output = run_on_pty("xterm", "test(second)");
fs::set_permissions(input, fs::Permissions::from_mode(0o600)).unwrap();
assert!(!output.status.success());
let text = String::from_utf8_lossy(&output.stderr);
let stage = text.rfind("Preparing coverage: recording inputs").unwrap();
let diagnostic = text.find("Coverage preparation failed").unwrap();
assert!(text[stage..diagnostic].contains("\x1b[2K"), "{text}");
assert!(!text[diagnostic..].contains("\x1b["), "{text}");
let saved = runs(root);
assert_eq!(saved.last().unwrap().1["outcome"], "failed");
assert!(attempts(&saved.last().unwrap().0).is_empty());
}
Referenced definitions
Input 2: requirements selection requirements.test-coverage.processes.progress.terminal
requirements.test-coverage.processes.progress.terminal:md/requirements/test-coverage.md:83–93
:::{req} processes.progress.terminal
Habeas coverage progress MUST be displayed when stderr is an interactive
terminal and `TERM` is not `dumb`. `NO_COLOR` MUST disable color without
disabling progress. When stderr is redirected or `TERM=dumb`, Habeas coverage
progress MUST NOT emit animation or terminal control sequences.
Temporary progress displays MUST be cleared when their stage ends, including
empty work and early collection failures. Final diagnostics and the coverage
artifact location MUST remain readable. Progress reporting MUST NOT change
coverage results, retained profiles, or command exit status.
:::
Other sources
Input 1: requirements selection requirements.test-coverage.processes.progress.preparation
requirements.test-coverage.processes.progress.preparation:md/requirements/test-coverage.md:77–81
:::{req} processes.progress.preparation
During coverage-data preparation, on a terminal enabled under
{cite}`requirements.test-coverage.processes.progress.terminal`, Habeas MUST
display updating activity and identify the current preparation stage.
:::