-
-
Notifications
You must be signed in to change notification settings - Fork 404
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
Part 1, modernize test suite #5954
Conversation
@@ -44,6 +44,7 @@ def setUp(self): | |||
except Exception: | |||
raise SkipTest("IPython could not be started") | |||
|
|||
self.ip.displayhook.flush = lambda: None # To avoid gc.collect called in it |
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.
This is not directly related to any failing test but gives a significant overhead when running the test suite.
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #5954 +/- ##
==========================================
- Coverage 88.58% 88.57% -0.01%
==========================================
Files 315 315
Lines 65573 65576 +3
==========================================
- Hits 58086 58085 -1
- Misses 7487 7491 +4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
This is part 1 of many parts, which will begin two tasks for the HoloViews test suite:
unittest
framework withself.assertEqual
and replace it with pytest.1.a. I plan to have an
assert_element_equal
for comparison of holoviews elements and then useassert
,{np, pd, xr}.testing
for types not directly HoloViews type. This will make it easier to see what is being tested at a glance.2.a. Be able to use fixtures. I have in this PR added
bokeh_backend
,mpl_backend
, andplotly_backend
.pytest-xdist
. ref Test suite are sensitive to run order #5565The focus of this PR has been updating the test, which saves files to disk; this has been done by using pytest
tmp_path
and minor updates to supportpathlib
for these methods.The second part is
test_statselements.py
, whereTestStatisticalCompositor
was sensitive to the run order because it neededhv.renderer('matplotlib')
to be called. I have updated the whole file to pytest.