Skip to content

Commit

Permalink
test(cli): Adds test for CLI commands
Browse files Browse the repository at this point in the history
  • Loading branch information
mchernicoff committed May 21, 2024
1 parent 214a777 commit 36ddb4d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions hipcheck/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -752,3 +752,14 @@ impl Outcome {
}
}
}

#[cfg(test)]
mod tests {
use super::Args;
use clap::CommandFactory;

#[test]
fn verify_cli() {
Args::command().debug_assert()
}
}

0 comments on commit 36ddb4d

Please sign in to comment.