Skip to content

Commit

Permalink
Move integration tests to per-binary directory to work around cargo l…
Browse files Browse the repository at this point in the history
…imitation to specify binary dependency
  • Loading branch information
wykurz committed Dec 27, 2023
1 parent efafd97 commit be1ee86
Show file tree
Hide file tree
Showing 12 changed files with 35 additions and 43 deletions.
11 changes: 4 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ members = [
"rcp",
"rlink",
"rrm",
"tests",
]

[profile.dev]
Expand Down
3 changes: 3 additions & 0 deletions filegen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name = "filegen"
version = "0.4.0"
edition = "2021"

[dev-dependencies]
assert_cmd = "2"

[dependencies]
anyhow = "1.0"
async-recursion = "1.0"
Expand Down
5 changes: 5 additions & 0 deletions filegen/tests/tests.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#[test]
fn check_filegen_help() {
let mut cmd = assert_cmd::Command::cargo_bin("filegen").unwrap();
cmd.arg("--help").assert();
}
3 changes: 3 additions & 0 deletions rcp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name = "rcp"
version = "0.4.0"
edition = "2021"

[dev-dependencies]
assert_cmd = "2"

[dependencies]
anyhow = "1.0"
bytesize = "1.3"
Expand Down
5 changes: 5 additions & 0 deletions rcp/tests/tests.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#[test]
fn check_rcp_help() {
let mut cmd = assert_cmd::Command::cargo_bin("rcp").unwrap();
cmd.arg("--help").assert();
}
3 changes: 3 additions & 0 deletions rlink/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name = "rlink"
version = "0.4.0"
edition = "2021"

[dev-dependencies]
assert_cmd = "2"

[dependencies]
anyhow = "1.0"
bytesize = "1.3"
Expand Down
5 changes: 5 additions & 0 deletions rlink/tests/tests.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#[test]
fn check_rlink_help() {
let mut cmd = assert_cmd::Command::cargo_bin("rlink").unwrap();
cmd.arg("--help").assert();
}
3 changes: 2 additions & 1 deletion rrm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ name = "rrm"
version = "0.4.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dev-dependencies]
assert_cmd = "2"

[dependencies]
anyhow = "1.0"
Expand Down
5 changes: 5 additions & 0 deletions rrm/tests/tests.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#[test]
fn check_rrm_help() {
let mut cmd = assert_cmd::Command::cargo_bin("rrm").unwrap();
cmd.arg("--help").assert();
}
11 changes: 0 additions & 11 deletions tests/Cargo.toml

This file was deleted.

23 changes: 0 additions & 23 deletions tests/tests.rs

This file was deleted.

0 comments on commit be1ee86

Please sign in to comment.