Skip to content
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

Migrated many e2e tests to integration tests #2933

Merged
merged 11 commits into from
Apr 12, 2024

Conversation

batconjurer
Copy link
Member

Describe your changes

Closes #2661
Closes #2927
This PR moves many e2e tests over to integration test. In the future, it may be possible to move more tests over. Moving some of these tests over revealed issues and these have also been resolved, including #2927.

Indicate on which release or other PRs this topic is based on

Checklist before merging to draft

  • I have added a changelog
  • Git history is in acceptable state

Copy link

codecov bot commented Mar 21, 2024

Codecov Report

Attention: Patch coverage is 44.44444% with 30 lines in your changes are missing coverage. Please review.

Project coverage is 61.27%. Comparing base (61a0759) to head (2468321).
Report is 5 commits behind head on main.

Files Patch % Lines
...es/apps/src/lib/node/ledger/shell/testing/utils.rs 0.00% 14 Missing ⚠️
...tes/apps/src/lib/node/ledger/shell/testing/node.rs 0.00% 13 Missing ⚠️
crates/apps/src/lib/node/ledger/shell/mod.rs 91.66% 2 Missing ⚠️
crates/apps/src/lib/node/ledger/mod.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2933      +/-   ##
==========================================
+ Coverage   53.44%   61.27%   +7.82%     
==========================================
  Files         310      290      -20     
  Lines      101574    88584   -12990     
==========================================
- Hits        54288    54280       -8     
+ Misses      47286    34304   -12982     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

tzemanovic added a commit that referenced this pull request Apr 4, 2024
* origin/bat/feat/migrate-e2e-to-int:
  Formatting
  Formatting
  Putting duct tape over a mysterious race condition in integrations tests
  Added logging to MockNode for when broadcasting a tx fails
  Added logging to MockNode for when broadcasting a tx fails
  Rebuilding tests wasms, updating gitflows
  [fix]: Fixing broken unit test
  formatting
  Rebasinga and adding changelog
  [feat]: Migrated many e2e test to integration tests
@brentstone
Copy link
Collaborator

To consider for future related work: how difficult is it to set up these integration tests with multiple validators?

brentstone
brentstone previously approved these changes Apr 6, 2024
@batconjurer
Copy link
Member Author

To consider for future related work: how difficult is it to set up these integration tests with multiple validators?

It's not obvious to me how to do it. I suspect it is hard.

Co-authored-by: Tomas Zemanovic <tomas@heliax.dev>
tzemanovic added a commit that referenced this pull request Apr 10, 2024
* origin/bat/feat/migrate-e2e-to-int:
  Update .changelog/unreleased/improvements/2933-migrated-e2e-to-int.md
  Formatting
  Formatting
  Putting duct tape over a mysterious race condition in integrations tests
  Added logging to MockNode for when broadcasting a tx fails
  Added logging to MockNode for when broadcasting a tx fails
  Rebuilding tests wasms, updating gitflows
  [fix]: Fixing broken unit test
  formatting
  Rebasinga and adding changelog
  [feat]: Migrated many e2e test to integration tests

# Conflicts:
#	crates/apps/src/lib/node/ledger/shell/governance.rs
#	crates/apps/src/lib/node/ledger/shell/testing/node.rs
#	crates/tests/src/e2e/ledger_tests.rs
@tzemanovic tzemanovic merged commit df9db29 into main Apr 12, 2024
17 of 19 checks passed
@tzemanovic tzemanovic deleted the bat/feat/migrate-e2e-to-int branch April 12, 2024 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Residual PoS inflation to PGF Convert e2e tests to integration tests
3 participants