-
Notifications
You must be signed in to change notification settings - Fork 432
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add E2E testing framework MVP #1381
Conversation
Has been exported via cargo install subxt-cli subxt metadata > contracts-node.scale For `substrate-contracts-node` v0.19.0.
We run into error[E0514]: found crate `core` compiled by an incompatible version of rustc otherwise, due to the e2e tests that build the contract in stable.
This reverts commit a99319c.
Otherwise our CI will run into `compiled by an incompatible version of rustc`, since we use nightly for `clippy`, but `stable` for `cargo-contract. The CI uses a `CARGO_TARGET_DIR` env variable which causes these collisions.
This reverts commit a942795.
Codecov Report
@@ Coverage Diff @@
## master #1381 +/- ##
===========================================
- Coverage 71.48% 45.05% -26.44%
===========================================
Files 187 195 +8
Lines 5857 5968 +111
===========================================
- Hits 4187 2689 -1498
- Misses 1670 3279 +1609
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Closing in favor of creating a new, cleaned up, PR for easier reviewing. |
MVP for #1234.
Contains only E2E tests for our
contract-transfer
example so far. Once we've nailed down the API I'll add E2E tests for the other examples in follow-up PRs. The best way to look at this PR is, I think, to look at the#[ink::e2e_test]
tests for that example.I've annotated a couple of
TODO(#xxx)
comments ‒ I'll create the issues + add the number before merging, I'm just waiting for approvals beforehand.