-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Test suite improvements #6364
Comments
On the doctests: it would be nice to have it as part of the same test suite, but I don't think there is much added value in doing so? In particular, I like the split as it is because the temptation will otherwise be to use the doctests as the primary tool to drive test coverage and skip on the unit test altogether. Instead, the doc examples should be geared towards documenting the function and giving examples of where a function may be useful. That partly overlaps with the goals of a unit test, but not completely? |
This has hidden quite some bugs in the past as in a lot of cases dtypes were not checked. And for properly testing the streaming operations, much bigger dataframes are required to trigger all codepaths, I assume. |
I agree that test coverage should come from 'actual' tests in the I think it'll just be a bit cleaner to have |
|
There is still work to be done, but I'll close this for now as the most pressing concerns have been addressed. |
I am planning to do some work on improving the test suite. Tracking my plans and progress in this issue, so that others may comment.
I plan to move those tests out of the 'regular' flow, so that we can runmake test
in parallelTemporaryDirectory
and otherwise making sure tests can run independently.verify_series_and_expr_api
. All Series methods that have a matching Expr method already dispatch to it - no need to run these tests twice.pytest --durations X
and mark the slowest tests as 'slow' to remove them from the regular run.parametrize
andfixture
.assert_frame_equal
andassert_series_equal
, but don't use it consistently.Get rid of thedoctest: +IGNORE_RESULT
directiveconftest.py
in thepy-polars
directory to injectfrom polars import pl
for each test. I don't like tests leaking out into the main folder structure. I think we are better off with our current approach.Input is welcome!
The text was updated successfully, but these errors were encountered: