Open consideRatio opened 2 years ago
For what it's worth, I've grown accustomed to assuming that tests are in an outside folder (eg, docs
, tests
, and either src
or packagename
as top level folders)
While we're at it, we might also want to standardize on sphinx folder naming:
doc
or docs
_build
in sake folder, or build
and source
in different folders with conf.py
in a parent docs folder EDIT by Erik: See https://github.com/jupyterhub/team-compass/issues/590 for discussion about sphinx!
For what it's worth, I've grown accustomed to assuming that tests are in an outside folder (eg, docs, tests, and either src or packagename as top level folders)
Me too! I never found the oauthenticator
tests from the first try and this was the motivation behind relocating them.
While we're at it, we might also want to standardize on sphinx folder naming
Great point! Personally, my only preference is consistency, so either way is ok.
Once changing approach would be to have all the repos follow what's happening in the jupyterhub
repo (assuming there aren't strong opinions about one or the other).
One other factor is whether the tests are installed into Python's site-packages for all users, which will be the case if tests are under the package directory instead of the top-level. This then requires consideration of what changes can be made without breaking others who import or extend the tests.
We could choose to exclude a nested tests directory, but I think it's easier to keep tests outside and only put them under the package folder if we actively want to make them available at runtime.
The benefits of including them:
Benefits of excluding them:
Ultimately, I don't think it matters much (not enough to suggest any migrations for existing projects to me), but following what seems to be the current standard in Python to put tests in their own folder for new projects makes sense.
Questions
Examples
Related