-
Notifications
You must be signed in to change notification settings - Fork 91
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
Optimizing test exectution for test geometry #1305
Conversation
Use class parametrization and a classmethod to get more intuitive signature of the indidivual tests
@isakhammer @jwboth I suggest a further refactoring that lead to much easier method signatures, see the latest push. If you agree with this, after possible changes first, I suggest @IvarStefansson has a final look at the PR. FYI: The tests fail, likely due to some installation issue external to this PR. I'll have a look. |
@keileg I like the approach. Indeed the signatures are much cleaner. |
@IvarStefansson Could you to have a look, please? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the solution. Note that I have not reviewed the details, assuming that the tests themselves have not changed even if the diff covers most of the file.
Correct, beyond simplified method signatures and some referrals to |
Good. Approving. |
Proposed changes
Based on issue #1303, we optimized the test to go from 13s to 6s, using
@fixture
for geometry. In this way we only constructed the object once instead of for every test.Types of changes
What types of changes does this PR introduce to PorePy?
Put an
x
in the boxes that apply.Checklist
Put an
x
in the boxes that apply or explain briefly why the box is not relevant.pytest
was run with the--run-skipped
flag.