Added some, lacking but better than nothing, integration tests.

This commit is contained in:
Jordan Petridis
2017-10-04 11:45:13 +03:00
parent 1b69fd5091
commit b6879f82b6
6 changed files with 161 additions and 1 deletions
+31
View File
@@ -0,0 +1,31 @@
extern crate assert_cli;
extern crate hammond;
// Notes:
// The following tests will use your systems local hammond db.
// There are no test for failure, cause the behavior have not
// been defined/though yet.
#[test]
fn test_update() {
assert_cli::Assert::main_binary()
.with_args(&["--update"])
.unwrap();
}
#[test]
fn test_download() {
assert_cli::Assert::main_binary()
.with_args(&["--download"])
.unwrap();
}
#[test]
fn test_add() {
assert_cli::Assert::main_binary()
.with_args(&[
"--add",
"https://feeds.feedburner.com/InterceptedWithJeremyScahill",
])
.unwrap();
}