portable-network-archive 0.37.0

Portable-Network-Archive cli
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Smoke test for bug-report generation.
//!
//! The report body is assembled by the `bugreport` crate from its built-in
//! collectors, so this module intentionally does not duplicate that library's
//! formatting and collector assertions. This test only pins the CLI wiring:
//! `pna bug-report` invokes the report pipeline and exits successfully.

use assert_cmd::cargo::cargo_bin_cmd;

/// Precondition: None.
/// Action: Run `pna bug-report`.
/// Expectation: Command exits successfully with exit code 0.
#[test]
fn bug_report_exits_successfully() {
    let mut cmd = cargo_bin_cmd!("pna");
    cmd.args(["bug-report"]).assert().success();
}