fabro/lib/crates/fabro-cli/tests/it/cmd/artifact_cp.rs
Bryan Helmkamp 0928620904 perf(cli): reduce slow integration test overhead
Collapse expensive CLI smoke coverage into scenario tests, replace the
slow doctor no-color integration check with a unit-level render test,
and remove duplicate attach coverage. Also fix local Unix-socket
autostart so missing daemons don't spend the full 5s readiness wait
before startup.

The commit includes the measured slow-test report updates for the work
landed here.
2026-04-07 22:57:45 -04:00

20 lines
593 B
Rust

use fabro_test::{fabro_snapshot, test_context};
use super::support::setup_completed_fast_dry_run;
#[test]
fn artifact_cp_empty_run_reports_no_artifacts() {
let context = test_context!();
let run = setup_completed_fast_dry_run(&context);
let dest = context.temp_dir.join("artifact-dest");
let mut cmd = context.command();
cmd.args(["artifact", "cp", &run.run_id, dest.to_str().unwrap()]);
fabro_snapshot!(context.filters(), cmd, @"
success: false
exit_code: 1
----- stdout -----
----- stderr -----
error: No artifacts found for this run
");
}