You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the testing suite of Intake relies on pytest for unit testing. While this is effective for testing functions and methods, it doesn't cover the examples provided in the docstrings. Adding support for doctest alongside pytest would allow us to automatically test these examples, ensuring they are accurate and up-to-date.
Proposal
I propose adding doctest support to the testing suite of Intake, specifically utilizing pytest --doctest-modules --verbose intake/readers to test the examples provided in docstrings.
Benefits
Comprehensive Testing: Including doctest in our testing suite ensures that not only our functions are tested but also the examples provided in the docstrings, leading to more comprehensive testing coverage.
Accuracy of Documentation: Testing docstring examples ensures that they accurately reflect the behavior of the functions/methods they describe. This helps maintain consistency between code and documentation.
Ease of Maintenance: Automated testing of docstring examples can catch discrepancies early on, making maintenance easier and reducing the likelihood of outdated examples.
Improved User Experience: Users rely on docstring examples for understanding how to use the functions/methods provided by Intake. Ensuring these examples are correct enhances the overall user experience.
Your contributions and feedback on this proposal are highly appreciated.
The text was updated successfully, but these errors were encountered:
Overview
Currently, the testing suite of Intake relies on
pytest
for unit testing. While this is effective for testing functions and methods, it doesn't cover the examples provided in the docstrings. Adding support fordoctest
alongsidepytest
would allow us to automatically test these examples, ensuring they are accurate and up-to-date.Proposal
I propose adding
doctest
support to the testing suite of Intake, specifically utilizingpytest --doctest-modules --verbose intake/readers
to test the examples provided in docstrings.Benefits
doctest
in our testing suite ensures that not only our functions are tested but also the examples provided in the docstrings, leading to more comprehensive testing coverage.Your contributions and feedback on this proposal are highly appreciated.
The text was updated successfully, but these errors were encountered: