Configuring Pytests in PyCharm

Praveen Narvaneni
Praveen Narvaneni
19.3 هزار بار بازدید - 5 سال پیش - All of this is about
All of this is about configuring pytests in pycharm


Steps to be followed:

 1. Choose a project for which you want to configure pytests

 2. Go to Settings

 3. Go to Project -} Project Interpreter

 4. Click on "+" (on top right)
 5. Choose pytest library & click on install (bottom left)

 6. CLose it
 7. Go to Settings -} Tools -} Python Integrated Tools

 8. Choose Script path and provide your path (Current project's path)

 9. Choose Working directory as your path (Current project's path)

10. CLick on 'Apply' then 'ok' and then close it  
11. Select Run (on top Navigation Bar)

12. Click on "Edit Configurations"

13. There select "+"

14. Select Python tests -} pytest

15. Mention the  Select module name/script path and mention the path

16. Choose Current directory as the working directory

17. Step 10

18. Close it

19. Now right-click on any function, you see Run py tests for that file

20. Just click on that to get the test results


Follow me on
       Facebook: praveen.narvaneni
       Instagram: praveen_kumar__narvaneni          


Contact me at:
  +91 7893431379
  [email protected]



Refer my profile at :

  LinkedIn: praveen-narvaneni-2075a8192


Watch my Technical Background at:

  https://github.com/Praveenkumar789 Follow my blogs at:

  https://mastermindsblog.home.blog/con...
5 سال پیش در تاریخ 1398/10/08 منتشر شده است.
19,325 بـار بازدید شده
... بیشتر