Skip to content

Commit

Permalink
[WIP] use patched incomplete spreet crate
Browse files Browse the repository at this point in the history
  • Loading branch information
nyurik committed Nov 5, 2023
1 parent 9ddbbe0 commit 3c0d14f
Show file tree
Hide file tree
Showing 20 changed files with 98 additions and 119 deletions.
125 changes: 46 additions & 79 deletions Cargo.lock

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

5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ semver = "1"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
serde_yaml = "0.9"
spreet = { version = "0.9", default-features = false }
spreet = { version = "0.10.0-dev", default-features = false }
sqlite-hashes = { version = "0.5", default-features = false, features = ["md5", "window", "hex"] }
sqlx = { version = "0.7", features = ["sqlite", "runtime-tokio"] }
subst = { version = "0.3", features = ["yaml"] }
Expand All @@ -67,5 +67,6 @@ sqlx-macros.opt-level = 3
insta.opt-level = 3
similar.opt-level = 3

#[patch.crates-io]
[patch.crates-io]
spreet = { git = "https://github.com/nyurik/spreet", branch = "simplify-use" }
#sqlite-hashes = { path = "/home/nyurik/dev/rust/sqlite-hashes" }
7 changes: 5 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,16 @@ test-int: clean-test install-sqlx
fi

# Run integration tests and save its output as the new expected output
bless: restart clean-test bless-insta-martin bless-insta-mbtiles
bless: restart clean-test bless-tests bless-insta-martin bless-insta-mbtiles
rm -rf tests/temp
cargo test -p martin --features bless-tests
tests/test.sh
rm -rf tests/expected
mv tests/output tests/expected

# Run test with bless-tests feature
bless-tests:
cargo test -p martin --features bless-tests

# Run integration tests and save its output as the new expected output
bless-insta-mbtiles *ARGS: (cargo-install "cargo-insta")
#rm -rf mbtiles/tests/snapshots
Expand Down
Loading

0 comments on commit 3c0d14f

Please sign in to comment.