Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add E2E testing framework MVP #1381

Closed
wants to merge 61 commits into from
Closed

Add E2E testing framework MVP #1381

wants to merge 61 commits into from

Conversation

cmichi
Copy link
Collaborator

@cmichi cmichi commented Sep 1, 2022

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.

@cmichi cmichi requested review from a team, ascjones and HCastano as code owners September 1, 2022 10:37
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.
@cmichi cmichi marked this pull request as draft September 1, 2022 11:17
@codecov-commenter
Copy link

codecov-commenter commented Sep 7, 2022

Codecov Report

Merging #1381 (6412bd6) into master (f846d6f) will decrease coverage by 26.43%.
The diff coverage is 28.30%.

❗ Current head 6412bd6 differs from pull request most recent head c1568d8. Consider uploading reports for the commit c1568d8 to get more accurate results

@@             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     
Impacted Files Coverage Δ
crates/env/src/engine/e2e/mod.rs 0.00% <0.00%> (ø)
crates/env/src/engine/e2e/xts.rs 0.00% <0.00%> (ø)
crates/lang/codegen/src/generator/ink_e2e_test.rs 0.00% <0.00%> (ø)
crates/lang/codegen/src/generator/mod.rs 0.00% <ø> (-100.00%) ⬇️
crates/lang/codegen/src/lib.rs 100.00% <ø> (ø)
crates/lang/ir/src/ir/config.rs 64.00% <ø> (-36.00%) ⬇️
crates/lang/ir/src/ir/ink_e2e_test.rs 0.00% <0.00%> (ø)
crates/lang/ir/src/ir/storage_item/config.rs 0.00% <ø> (-73.34%) ⬇️
crates/lang/ir/src/ir/trait_def/config.rs 7.69% <ø> (-56.60%) ⬇️
crates/lang/macro/src/ink_e2e_test.rs 0.00% <0.00%> (ø)
... and 86 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@cmichi
Copy link
Collaborator Author

cmichi commented Sep 14, 2022

Closing in favor of creating a new, cleaned up, PR for easier reviewing.

@cmichi cmichi closed this Sep 14, 2022
@cmichi cmichi deleted the cmichi-e2e-testing-mvp branch September 14, 2022 12:02
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants