The current template repo has two python packages, both of which use python's unittest framework. In mytemplate, this includes two sub-packages that each uses unittest. However, pytest is another framework that others might prefer to use (or are already using).
What are the POptUS requirements for unit testing within a python package, across python packages within a particular repo, and across all python packages in the POptUS organization?
My proposed requirements are:
- Each python sub-package shall be able to use the the unit testing framework of their choice (e.g.,
unittest, pytest).
- Each python package shall be constructed and maintained in such a way that all the tests from the main package and from all sub-packages (regardless of which unit test framework they use) can be effectively grouped into a single test suite that users can run via
<package>.test() and with a single command to tox (e.g., tox -r -e nocoverage).
If these are the desired requirements, then this template should be updated so that mytemplate/subA uses unittest and mytemplate/subB uses pytest. This is necessary to prove that these requirements can be satisfied and to provide a concrete demonstration of how to achieve it.
@jmlarson1 @wildsm @mmenickelly Any thoughts on these requirements?
The current template repo has two python packages, both of which use python's
unittestframework. Inmytemplate, this includes two sub-packages that each usesunittest. However,pytestis another framework that others might prefer to use (or are already using).What are the POptUS requirements for unit testing within a python package, across python packages within a particular repo, and across all python packages in the POptUS organization?
My proposed requirements are:
unittest,pytest).<package>.test()and with a single command to tox (e.g.,tox -r -e nocoverage).If these are the desired requirements, then this template should be updated so that
mytemplate/subAusesunittestandmytemplate/subBusespytest. This is necessary to prove that these requirements can be satisfied and to provide a concrete demonstration of how to achieve it.@jmlarson1 @wildsm @mmenickelly Any thoughts on these requirements?