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 tests to use redeployed contracts #1024

Merged
merged 8 commits into from
Feb 6, 2024

Conversation

marcosio
Copy link
Contributor

@marcosio marcosio commented Jan 22, 2024

The tests for burnable and freezable contracts have been refactored to use newly deployed contracts. Additionally, these tests have been exported as functions to be used in other testing scenarios, specifically in the newly added stableCoinStudio test suite. This change improves the modularity and reusability of the burnable and freezable tests.

Description:

Related issue(s):

Fixes #

Notes for reviewer:

Checklist

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

The tests for burnable and freezable contracts have been refactored to use newly deployed contracts. Additionally, these tests have been exported as functions to be used in other testing scenarios, specifically in the newly added stableCoinStudio test suite. This change improves the modularity and reusability of the burnable and freezable tests.

Signed-off-by: Marcos Serradilla Diez <[email protected]>
Refactored the HederaTokenManager contract to import IHederaTokenService. Also, revised several test files to enhance modularity and readability. This includes adding new utility functions, updating existing ones, and adjusting the structure of test suites.

Signed-off-by: Marcos Serradilla Diez <[email protected]>
@marcosio marcosio changed the title Refactor burnable and freezable tests to use redeployed contracts Refactor tests to use redeployed contracts Jan 22, 2024
Added 'regularFactory' to utility functions in the 'stableCoinStudio.ts' test file, and rearranged 'pausable' in the HederaTokenManager contract. This enhances flexibility by adjusting the usage of the test file's utility functions and modulating the properties of contracts.

Signed-off-by: Marcos Serradilla Diez <[email protected]>
The codes for 'stableCoinFactory' test have been refactored for readability and maintainability. The refactor involves rearranging the existing codes into more proper structured blocks. No new functionalities were added, and existing functionalities were neither removed nor modified.

Signed-off-by: Marcos Serradilla Diez <[email protected]>
@marcosio marcosio marked this pull request as ready for review January 22, 2024 18:23
The export function wrapper for the 'reserve' and 'stableCoinFactory' test suites has been removed to improve clarity. Key functionalities of the tests remain unchanged.

Signed-off-by: Marcos Serradilla Diez <[email protected]>
Signed-off-by: Marcos Serradilla Diez <[email protected]>
Copy link
Contributor

@MiguelLZPF MiguelLZPF left a comment

Choose a reason for hiding this comment

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

I haven't go through each test but everything looks great to me 🖤

…egularFactoryPlus10000

Signed-off-by: Marcos Serradilla Diez <[email protected]>
@marcosio marcosio merged commit d3add7e into sprint-35 Feb 6, 2024
1 of 2 checks passed
@marcosio marcosio deleted the feature/testImprovementsWithOneDeploy branch February 6, 2024 08:19
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.

2 participants