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

video 'hello test world' #27

Closed
elephantarms opened this issue Dec 5, 2018 · 10 comments
Closed

video 'hello test world' #27

elephantarms opened this issue Dec 5, 2018 · 10 comments

Comments

@elephantarms
Copy link

This video was very disappointing . Your explanation of the command line arguments was extremely superficial. I cannot get it to work. I am starting to regret buying this course. can you point to a better, more detailed explanation of how to run pytest. Thanks.

@bbelderbos
Copy link
Collaborator

Thanks @elephantarms for your feedback. I can definitely add some command line flags in the README if that helps, but for basic usage (like in this video), you don't typically need them.

Could you please let me know the issue you are hitting so I can look into a possible solution for you?

Cheers
Bob

@elephantarms
Copy link
Author

elephantarms commented Dec 6, 2018 via email

@hobojoe1848
Copy link
Collaborator

Hi @elephantarms, (love the username btw!),

Can you paste the errors please?
We need to see the exact error messages so we can figure out what's going wrong.

Thanks mate!
Cheers
Julian

@elephantarms
Copy link
Author

elephantarms commented Dec 6, 2018 via email

@bbelderbos
Copy link
Collaborator

pytest is an external dependency and therefore you need to pip install it, typically into a virtual environment. See the README where I just added a link to an article we did on virtual environments: https://github.com/talkpython/100daysofcode-with-python-course/blob/master/days/10-12-pytest/README.md. HTH and let us know if you need more help ...

@elephantarms
Copy link
Author

elephantarms commented Dec 7, 2018 via email

@bbelderbos
Copy link
Collaborator

Both are valid options. I only use it from the command line as shown in the lesson. I don't use pycharm, but check out the docs here: https://www.jetbrains.com/help/pycharm/pytest.html + pytest master Brian Okken recorded a webinar on the topic if you want to dive deep: https://www.youtube.com/watch?v=ixqeebhUa-w

HTH
Bob

@elephantarms
Copy link
Author

elephantarms commented Dec 7, 2018 via email

@mikeckennedy
Copy link
Member

Hi guys, thanks for all the details Bob. @elephantarms you can also just add a run config for pytest in PyCharm. See this image for all you need. Just pick the tests file to run:

screen shot 2018-12-07 at 2 51 13 pm

@elephantarms
Copy link
Author

elephantarms commented Dec 9, 2018 via email

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

4 participants