mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-10-05 02:41:45 +00:00
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.
20 lines
593 B
Rust
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
|
|
");
|
|
}
|