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

Improve execution time of unit tests #1018

Merged
merged 3 commits into from
Apr 11, 2023
Merged

Improve execution time of unit tests #1018

merged 3 commits into from
Apr 11, 2023

Conversation

meevee98
Copy link
Collaborator

No description provided.

@meevee98 meevee98 requested a review from luc10921 March 29, 2023 20:19
@meevee98 meevee98 self-assigned this Mar 29, 2023
@meevee98 meevee98 marked this pull request as ready for review March 29, 2023 21:46
@coveralls
Copy link
Collaborator

coveralls commented Mar 29, 2023

Coverage Status

Coverage: 91.018% (+0.03%) from 90.989% when pulling 0310db5 on CU-864dxrw5k into a6e9a1c on development.

@meevee98 meevee98 marked this pull request as draft March 29, 2023 22:25
@meevee98 meevee98 force-pushed the CU-864dxrw5k branch 4 times, most recently from bde7372 to 56fd3ed Compare April 3, 2023 20:31
@meevee98 meevee98 marked this pull request as ready for review April 10, 2023 20:06
@@ -178,25 +188,53 @@ def get_contract_path(self, *args: str) -> str:
raise FileNotFoundError(path)
return path

def get_deploy_file_paths_without_compiling(self, contract_path: str) -> Tuple[str, str]:
file_path_without_ext, _ = os.path.splitext(contract_path)
if USE_UNIQUE_NAME:
Copy link
Collaborator

@luc10921 luc10921 Apr 11, 2023

Choose a reason for hiding this comment

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

Why use USE_UNIQUE_NAME instead of self._use_custom_name?

Also, other files are always using engine.use_contract_custom_name = self._use_custom_name. Does USE_UNIQUE_NAME only exist to be more explicit?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

self._use_custom_name was included in BoaTest to pass its value to the tests using TestEngine without having to import the USE_UNIQUE_NAME constant across all the test files, it'll be removed when we remove TestEngine as well

@meevee98 meevee98 requested review from melanke and removed request for melanke April 11, 2023 14:51
@luc10921 luc10921 merged commit ab71cd5 into development Apr 11, 2023
@melanke melanke deleted the CU-864dxrw5k branch May 5, 2023 16:38
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.

None yet

4 participants