Configuring Pytests in PyCharm

Опубликовано: 29 Декабрь 2019
на канале: Praveen Narvaneni
20k
232

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 




Contact me at:
+91 7893431379
praveen.narvaneni



Refer my profile at :

 


Watch my Technical Background at:

Follow my blogs at:


Смотрите видео Configuring Pytests in PyCharm онлайн без регистрации, длительностью 05 минут 50 секунд в хорошем hd качестве. Это видео добавил пользователь Praveen Narvaneni 29 Декабрь 2019, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 20 тысяч раз и оно понравилось 232 людям.