Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong documentation #1068

Closed
oleg-alexandrov opened this issue Sep 25, 2015 · 3 comments
Closed

Wrong documentation #1068

oleg-alexandrov opened this issue Sep 25, 2015 · 3 comments

Comments

@oleg-alexandrov
Copy link
Contributor

I installed pytest and xdist. Latest version apparently:

py.test --version

This is pytest version 2.8.0,

Following http://pytest.org/latest/xdist.html?highlight=xdist I run:

py.test -n 4

py.test: error: unrecognized arguments: -n

Also for:

py.test -d

usage: py.test [options] [file_or_dir] [file_or_dir] [...]
py.test: error: unrecognized arguments: -d

@nicoddemus
Copy link
Member

Hi,

I just installed it into a fresh pytest environment and everything seems to be working. How did you install it? What's the output when you run py.test? You should see installed plugins right in the header:

============================= test session starts =============================
platform win32 -- Python 2.7.10, pytest-2.8.0, py-1.4.30, pluggy-0.3.1
rootdir: X:\temp\x, inifile:
plugins: xdist-1.13.1
collected 2 items

@oleg-alexandrov
Copy link
Contributor Author

I figured out the problem. pytest could not find xdist. It would have been nice to have some kind of informative error message. It is overall confusing that xdist is a separate package.

@RonnyPfannschmidt
Copy link
Member

@oleg-alexandrov the documentation you referred to has nice big sections about first installing it links to its package and so on, i don't see how we can really improve on that

also having py.tests own code keep track of options of external plugins or 3rd party plugins add is counterproductive in various ways

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants