Skip to content

running py.test #1484

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

Closed
hooman96 opened this issue Mar 25, 2016 · 2 comments
Closed

running py.test #1484

hooman96 opened this issue Mar 25, 2016 · 2 comments

Comments

@hooman96
Copy link

I am using python 3.5 and installed the latest pytest package with pip install.

I noticed in order to run py.test when I had example.py in my directory, I had to mention example.py as one of the command arguments. The guide said we can simply run py.test but it says: collected 0 items.

@The-Compiler
Copy link
Member

Where in which guide are you seeing that? It doesn't work in your case because your file is named example.py - pytest only picks up files named test_*.py by default.

@The-Compiler
Copy link
Member

Closing this for now - if there's anything still unclear, feel free to ask!

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

2 participants