Skip to content

Commit b747488

Browse files
committed
core, store: Move core tests to test-store
1 parent e1e943d commit b747488

File tree

8 files changed

+14
-2
lines changed

8 files changed

+14
-2
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ anyhow = "1.0"
3232

3333
[dev-dependencies]
3434
tower-test = { git = "https://github.com/tower-rs/tower.git" }
35-
test-store = { path = "../store/test-store" }
3635
hex = "0.4.3"
3736
graphql-parser = "0.4.0"
3837
pretty_assertions = "1.3.0"

core/tests/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Put integration tests for this crate into `store/test-store/tests/core`.
2+
This avoids cyclic dev-dependencies which make rust-analyzer nearly
3+
unusable. Once [this
4+
issue](https://github.com/rust-lang/rust-analyzer/issues/14167) has been
5+
fixed, we can move tests back here

store/test-store/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,6 @@ hex-literal = "0.3"
1818
diesel = { version = "1.4.8", features = ["postgres", "serde_json", "numeric", "r2d2"] }
1919
serde = "1.0"
2020
prost-types = { workspace = true }
21+
22+
[dev-dependencies]
23+
pretty_assertions = "1.3.0"

store/test-store/tests/core.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
pub mod core {
2+
pub mod interfaces;
3+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
hello world
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20c12d76-0e6a-428c-b6c9-b7e384ccb6fc
File renamed without changes.

0 commit comments

Comments
 (0)