Skip to content

Commit

Permalink
Separate unit-tests and test-tube tests for merkle-incentives contract (
Browse files Browse the repository at this point in the history
  • Loading branch information
lubkoll authored Jul 22, 2024
1 parent 22d0cd2 commit f443574
Show file tree
Hide file tree
Showing 7 changed files with 446 additions and 518 deletions.
2 changes: 1 addition & 1 deletion smart-contracts/contracts/merkle-incentives/.cargo/config
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
wasm = "build --release --lib --target wasm32-unknown-unknown"
unit-test = "test --lib"
schema = "run --bin schema"
test-tube = "test --package merkle-incentives --lib -- --include-ignored test_tube:: --nocapture --test-threads=1"
test-tube = "test --features test-tube -- --include-ignored --test-threads=1"
test-tube-build = "build --release --lib --target wasm32-unknown-unknown --target-dir ./test-tube-build"
8 changes: 2 additions & 6 deletions smart-contracts/contracts/merkle-incentives/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@ crate-type = ["cdylib", "rlib"]
name = "schema"

[features]
# for more explicit tests, cargo test --features=backtraces
backtraces = ["cosmwasm-std/backtraces"]
# use library feature to disable all instantiate/execute/query exports
library = []
test-tube = ["osmosis-test-tube"]

[dependencies]
base64 = { workspace = true }
Expand All @@ -26,8 +25,5 @@ schemars = { workspace = true }
serde = { workspace = true }
serde-json-wasm = { workspace = true }
thiserror = { workspace = true }

rs_merkle = { version = "1.4.2", default-features = false }

[dev-dependencies]
osmosis-test-tube = { workspace = true }
osmosis-test-tube = { workspace = true, optional = true }
3 changes: 0 additions & 3 deletions smart-contracts/contracts/merkle-incentives/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,4 @@ pub mod incentives;
pub mod msg;
pub mod state;

#[cfg(test)]
mod test_tube;

pub use crate::error::ContractError;

This file was deleted.

Loading

0 comments on commit f443574

Please sign in to comment.