video 'hello test world'
elephantarms opened this issue · 10 comments
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.
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
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
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 ...
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
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:
