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 unit tests into separate files #350

Closed
wants to merge 10 commits into from

Conversation

algochoi
Copy link
Contributor

@algochoi algochoi commented Jun 15, 2022

This PR separates the different unit test classes into different files for improved readability.

This PR also proposes to rename the test directory to tests directory to prevent any conflicts with the existing Python test package.

Currently merging into feature/box-storage in fear of merge conflicts.

@@ -114,7 +114,7 @@ venv.bak/

Copy link
Contributor

Choose a reason for hiding this comment

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

@algochoi Unrelated to the line, but opening a thread to minimize Conversation chatter:

  • Thanks for taking the exercise of splitting out tests from a single file.
  • Open to discussion - What are your thoughts?
    • I think the chance for error will be higher by refactoring in the (long-lived) feature branch rather than develop.
    • My 2c is to make the change against develop and once approved, then bring the change into the feature branch. Using the feature branch requires us to repeat the refactoring for any test changed in develop.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Merging to develop sounds fine to me. I'm hoping that the merge-back process will be smooth for other PRs touching the test files as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Opening up #351 to PR against develop. There are two fewer test classes in that PR compared to this one.

Refactoring

Revert and refactor unit tests

Finish moving tests to separate modules

Remove test feature files

adding method to ABIResult (#342)

* adding method to ABIResult

Add method to get Method by name (#345)

* adding util method to get a Method from an interface or contract by name string

Change paths for tests

Change makefile
@algochoi algochoi closed this Jun 21, 2022
@algochoi algochoi deleted the refactor-tests branch August 8, 2022 15:43
@algochoi algochoi restored the refactor-tests branch August 8, 2022 15:43
@algochoi algochoi deleted the refactor-tests branch June 23, 2023 17:08
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