As mentioned in pytest
's FAQ:
pytest
used to be part of thepy
package, which provided several developer utilities, all starting withpy.<TAB>
, thus providing nice TAB-completion. If you installpip install pycmd
you get these tools from a separate package. Once pytest became a separate package, thepy.test
name was retained due to avoid a naming conflict with another tool. This conflict was eventually resolved, and thepytest
command was therefore introduced. In future versions ofpytest
, we may deprecate and later remove thepy.test
command to avoid perpetuating the confusion.
May I suggest to rename the py.test tag to pytest? The latter is the official package/distribution/cli entrypoint name for several years now (at least since the release of 3.0 in 2016, with the remaining usages of py.test
cleaned up in code and docs) so there should be no need to stick with the old name.