Skip to content

Python unit testing requirement #2

Description

@jared321

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:

  1. Each python sub-package shall be able to use the the unit testing framework of their choice (e.g., unittest, pytest).
  2. 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?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions