Skip to content

Commit a642f13

Browse files
authored
test: refactor integration tests to assert_cmd and predicates, test all configs in config subdirectory (#1060)
The intention of this PR is to make it easier (more straight forward) to write `rustic` integration tests by utilizing the `assert_cmd` and `predicates` crates. --------- Signed-off-by: simonsan <14062932+simonsan@users.noreply.github.com>
1 parent 206efa3 commit a642f13

4 files changed

Lines changed: 149 additions & 116 deletions

File tree

Cargo.lock

Lines changed: 81 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ self_update = { version = "0.39", default-features = false, optional = true, fea
9191

9292
[dev-dependencies]
9393
abscissa_core = { version = "0.7.0", default-features = false, features = ["testing"] }
94+
assert_cmd = "2.0.13"
9495
dircmp = "0.2"
96+
predicates = "3.1.0"
9597
pretty_assertions = "1.4"
9698
quickcheck = "1"
9799
quickcheck_macros = "1"
@@ -102,8 +104,6 @@ toml = "0.8"
102104

103105
[target.'cfg(not(windows))'.dependencies]
104106
libc = "0.2.153"
105-
106-
[workspace.dependencies]
107107
# cargo-binstall support
108108
# https://github.com/cargo-bins/cargo-binstall/blob/HEAD/SUPPORT.md
109109
[package.metadata.binstall]

0 commit comments

Comments
 (0)