add assert_cmd to test binaries

This commit is contained in:
tahahawa
2025-04-11 17:03:09 -04:00
committed by taha
parent 83355e140a
commit 49b39f403b
3 changed files with 93 additions and 0 deletions

View File

@@ -18,3 +18,13 @@ async fn main() {
]);
harmony_cli::init(maestro).await.unwrap();
}
use assert_cmd::Command;
#[test]
fn test_example() {
let mut cmd = Command::cargo_bin("example-cli").unwrap();
let assert = cmd.arg("--run").arg("SuccessScore").assert();
assert.success();
}