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

Refactor ContractCallServiceERCTokenTest delegate transfer #9163

Merged
merged 1 commit into from
Aug 26, 2024

Conversation

nickeynikolovv
Copy link
Contributor

@nickeynikolovv nickeynikolovv commented Aug 26, 2024

Description:

With this PR the ContractCallServiceERCTokenTest integration test file is partially refactored using the web3j plugin and the big enum is now replaced with multiple JUnit tests so that it is easier to debug a particular scenario. This way also the number of persisted entities per test is reduced significantly and now we persist only the ones that are needed in the particular test.

This PR refactors delegate transfer test, so it can be more readable.

Related issue(s):

Fixes: #9162

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

Signed-off-by: Nikolay Nikolov <nikolay.nikolov@limechain.tech>
@nickeynikolovv nickeynikolovv added enhancement Type: New feature technical debt test Test infrastructure, automated tests required, etc web3 Area: Web3 API labels Aug 26, 2024
@nickeynikolovv nickeynikolovv requested a review from a team August 26, 2024 10:36
@nickeynikolovv nickeynikolovv self-assigned this Aug 26, 2024
Copy link

sonarcloud bot commented Aug 26, 2024

Copy link

codecov bot commented Aug 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.27%. Comparing base (ca7e24b) to head (1733484).
Report is 13 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #9163      +/-   ##
============================================
+ Coverage     92.14%   92.27%   +0.12%     
+ Complexity     7713     7604     -109     
============================================
  Files           933      915      -18     
  Lines         30823    30549     -274     
  Branches       3762     3739      -23     
============================================
- Hits          28402    28189     -213     
+ Misses         1575     1519      -56     
+ Partials        846      841       -5     

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

Copy link
Contributor

@IvanKavaldzhiev IvanKavaldzhiev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@steven-sheehy steven-sheehy added this to the 0.113.0 milestone Aug 26, 2024
@steven-sheehy steven-sheehy merged commit d0352e5 into main Aug 26, 2024
31 checks passed
@steven-sheehy steven-sheehy deleted the 9162-refactor-contract-call-erc-token-delegate branch August 26, 2024 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Type: New feature technical debt test Test infrastructure, automated tests required, etc web3 Area: Web3 API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor ContracCallServiceERCTokenTest delegate scenario
3 participants