stax 0.96.3

Fast stacked Git branches and PRs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::common::{OutputAssertions, TestRepo};

#[test]
fn trace_reports_git_subprocess_count_and_total_time() {
    let repo = TestRepo::new();
    repo.create_stack(&["trace-a", "trace-b"]);

    let output = repo.run_stax(&["--trace", "status", "--json"]);
    output.assert_success();

    let stderr = TestRepo::stderr(&output);
    assert!(stderr.contains("[trace] git #"), "stderr:\n{stderr}");
    assert!(stderr.contains("git commands in"), "stderr:\n{stderr}");
}