Replies: 1 comment 2 replies
-
Sounds fine by me if nobody has objections. Some people do seem to like to run all tests when they download a package but I think those are a very small minority. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
With the reorganization of the tests complete (#5777), a last question remains: where to place the
tests
directory. It currently resides inside thepymc
code directory:but one could argue that it would make more sense to put it at the same level as
benchmarks/
,docs/
andpymc/
:This is what is recommended by the official Python packaging guide, by the Pytest good practices guide, the Poetry package management tool as well as by other guides.
However, I have to note that
numpy
,scipy
, andpandas
all havetests
inside the code directory.Besides the arguments advanced by the Pytest good practices guide, I can add that I often
grep
the source code directory to see where or how a function or class is used or defined. With the tests directory where it is currently, a lot of noise is often returned from the tests.Cost of the transition: probably limited to some
import
s to change in the test files to reflect the move.What is your opinion on this?
Beta Was this translation helpful? Give feedback.
All reactions