Initial commit: git-issue-commit CLI tool
This commit is contained in:
18
tests/integration_tests.rs
Normal file
18
tests/integration_tests.rs
Normal file
@@ -0,0 +1,18 @@
|
||||
#[cfg(test)]
|
||||
mod integration_tests {
|
||||
use assert_cmd::Command;
|
||||
|
||||
#[test]
|
||||
fn test_cli_help() {
|
||||
let mut cmd = Command::cargo_bin("git-issue-commit").unwrap();
|
||||
cmd.arg("--help");
|
||||
cmd.assert().success();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_cli_version() {
|
||||
let mut cmd = Command::cargo_bin("git-issue-commit").unwrap();
|
||||
cmd.arg("--version");
|
||||
cmd.assert().success();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user