From 2f3e7e64d982169eb5604a56bcd69dc9082600dc Mon Sep 17 00:00:00 2001 From: Claudio Noguera Date: Sun, 7 Feb 2021 18:24:16 +0100 Subject: [PATCH] try to increase coverage --- tests/test_commands.rs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/tests/test_commands.rs b/tests/test_commands.rs index 9a216ec..9d8d605 100644 --- a/tests/test_commands.rs +++ b/tests/test_commands.rs @@ -1,5 +1,5 @@ use assert_cmd::Command; - +use dinero::run_app; #[test] fn date_filters() { let assert_1 = Command::cargo_bin("dinero") @@ -77,4 +77,17 @@ fn real_filter() { .assert(); let output = String::from_utf8(assert_1.get_output().to_owned().stdout).unwrap(); assert_eq!(output.lines().into_iter().count(), 4); + + let args: Vec = vec![ + "testing", + "reg", + "-f", + "examples/virtual_postings.ledger", + "--real", + ] + .iter() + .map(|x| x.to_string()) + .collect(); + let res = run_app(args); + assert!(res.is_ok()); }