Hi Dhruv,

On Wed, Nov 13, 2013 at 22:50 -0800, Dhruv Bhagi wrote:
> Hi,
> I'm relatively new to using pytest on windows. I have bunch of test files
> (like test1.py, test2.py, test3.py etc in a folder tests). The goal is to
> run a particular individual test <say test1.py>by running the command
> 'pytest test1.py'. Instead, pytest is running all the tests in the 'tests'
> folder <rather than running only test1.py>. pytest is not even any
> arguments <like --version, --help etc.>. If i do 'pytest --version', it
> still runs all the tests in the folder.
> 
> So the problem is, pytest not parsing/taking any arguments supplied to it.
> This is happening only on windows (i'm using windows7, pytest 2.3.3).
> Anyone seen this before? What could be possibly wrong? (Or) what part of
> the pytest code should i look at to drill down to the problem? Please
> advise.
> 
> I'm kinda blocked by this. I will be greatly thankful for your help.


I suspect you are using the wrong tool.  The package "pytest" installs
the "py.test" tool (mind the dot).  There also is another tool "pytest"
which is installed under a different package name (something with "logilab"
i think).  The confusion is historic -- i guess pytest could at some point
move to just provide "pytest" and "py.test".

cheers,
holger

> Thanks in advance,
> 
> Dhruv

> _______________________________________________
> Pytest-dev mailing list
> [email protected]
> https://mail.python.org/mailman/listinfo/pytest-dev

_______________________________________________
Pytest-dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pytest-dev

Reply via email to