feat: harmony-cli v0.1 #8 #9

Merged
taha merged 23 commits from harmony-cli into master 2025-04-19 01:13:40 +00:00
7 changed files with 345 additions and 4 deletions
Showing only changes of commit ee9270d771 - Show all commits

View File

@@ -22,9 +22,17 @@ async fn main() {
use assert_cmd::Command;
#[test]
fn test_example() {
fn test_example_success() {
let mut cmd = Command::cargo_bin("example-cli").unwrap();
let assert = cmd.arg("--run").arg("SuccessScore").assert();
let assert = cmd.args(&["--run", "--filter", "SuccessScore"]).assert();
assert.success();
}
#[test]
fn test_example_fail() {
let mut cmd_fail = Command::cargo_bin("example-cli").unwrap();
let assert_fail = cmd_fail.args(&["--run", "--filter", "ErrorScore"]).assert();
assert_fail.failure();
}