-
Notifications
You must be signed in to change notification settings - Fork 451
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract e2e testing framework to its own crate (#1429)
* Extract e2e to standalone crate * WIP moving e2e macro code to e2e macro crate * Fix remaining macro errors * Fix some more errors * Fmt * Remove redundant import * Fix UI tests * Use new release of `cargo-contract` in CI * Fix e2e refs and update smart-bench-macro branch * Add TODO * Replace tokio::test macro with explicit async init * Fix integration test compilation
- Loading branch information
Showing
35 changed files
with
316 additions
and
297 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
[package] | ||
name = "ink_e2e" | ||
version = "4.0.0-alpha.3" | ||
authors = ["Parity Technologies <[email protected]>"] | ||
edition = "2021" | ||
|
||
license = "Apache-2.0" | ||
readme = "README.md" | ||
repository = "https://github.com/paritytech/ink" | ||
documentation = "https://docs.rs/ink_e2e/" | ||
homepage = "https://www.parity.io/" | ||
description = "[ink!] End-to-end testing framework for smart contracts." | ||
keywords = ["wasm", "parity", "webassembly", "blockchain", "edsl"] | ||
categories = ["no-std", "embedded"] | ||
include = ["/Cargo.toml", "src/**/*.rs", "/README.md", "/LICENSE"] | ||
|
||
[dependencies] | ||
ink_e2e_macro = { version = "4.0.0-alpha.3", path = "./macro" } | ||
ink_env = { version = "4.0.0-alpha.3", path = "../env" } | ||
|
||
contract-metadata = { version = "2.0.0-alpha.2" } | ||
impl-serde = { version = "0.3.1", default-features = false } | ||
jsonrpsee = { version = "0.15.1", features = ["ws-client"] } | ||
pallet-contracts-primitives = { version = "6.0.0" } | ||
serde = { version = "1.0.137", default-features = false, features = ["derive"] } | ||
serde_json = { version = "1.0.81" } | ||
tokio = { version = "1.18.2", features = ["rt-multi-thread"] } | ||
log = { version = "0.4" } | ||
env_logger = { version = "0.9" } | ||
scale = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive", "full"] } | ||
subxt = { version = "0.24.0" } | ||
|
||
# Substrate | ||
sp-rpc = { version = "6.0.0" } | ||
sp-core = { version = "6.0.0" } | ||
sp-keyring = { version = "6.0.0" } | ||
sp-runtime = { version = "6.0.0" } | ||
|
||
# TODO(#1421) `smart-bench_macro` needs to be forked. | ||
smart-bench-macro = { git = "https://github.com/paritytech/smart-bench", branch = "aj-ink-e2e-test-mvp", package = "smart-bench-macro" } | ||
|
||
[features] | ||
default = ["std"] | ||
std = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../LICENSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
[package] | ||
name = "ink_e2e_macro" | ||
version = "4.0.0-alpha.3" | ||
authors = ["Parity Technologies <[email protected]>"] | ||
edition = "2021" | ||
|
||
license = "Apache-2.0" | ||
readme = "README.md" | ||
repository = "https://github.com/paritytech/ink" | ||
documentation = "https://docs.rs/ink_macro/" | ||
homepage = "https://www.parity.io/" | ||
description = "[ink!] Macro for generating end-to-end tests" | ||
keywords = ["wasm", "parity", "webassembly", "blockchain", "edsl"] | ||
categories = ["no-std", "embedded"] | ||
include = ["Cargo.toml", "src/**/*.rs", "README.md", "LICENSE"] | ||
|
||
[lib] | ||
name = "ink_e2e_macro" | ||
proc-macro = true | ||
|
||
[dependencies] | ||
ink_ir = { version = "4.0.0-alpha.3", path = "../../ink/ir" } | ||
derive_more = "0.99.17" | ||
env_logger = "0.9.1" | ||
log = "0.4.17" | ||
serde_json = "1.0.85" | ||
syn = "1" | ||
proc-macro2 = "1" | ||
quote = "1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.