Skip to content

Commit

Permalink
try to increase coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
frosklis committed Feb 7, 2021
1 parent 16eb3fd commit 2f3e7e6
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion tests/test_commands.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use assert_cmd::Command;

use dinero::run_app;
#[test]
fn date_filters() {
let assert_1 = Command::cargo_bin("dinero")
Expand Down Expand Up @@ -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<String> = 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());
}

0 comments on commit 2f3e7e6

Please sign in to comment.