How to debug your pytest tests with PyCharm

preview_player
Показать описание
We debug code all the time, but did you know that you can also debug your test code? Watch this video to learn how to use PyCharm’s powerful debugger to quickly identify the root of the problem and save precious time. Forget about print statements – just add a breakpoint and run with the debugger!

Dive into our tutorial series on how to make using pytest simpler and more efficient with PyCharm, allowing you to deliver quality code faster. Step by step, you’ll learn how to get started with pytest in PyCharm, write your first test, fix errors in your code, skip specific tests, and more.

🔗 Useful links:

#pytest #pytesttutorial #learnpytest #softwaretesting #python #pycharm #jetbrains
Рекомендации по теме
Комментарии
Автор

Thanks for the tips! Didn’t know you could use it for tests too

rjhollinger
Автор

This is really nice, but in case we have thousands of tests it’s not too useful to run tests on each change… What I don’t like or maybe I’m doing something wrong, but if I run my pytest where I set coverage report, from PyCharm test is run from place where test is and it creates a lot of .coverage, htmlcov dirs, etc. if I use terminal to run individual tests I don’t have these issues. 😊

mileta
Автор

Why you say dunder on a singder (single underscore)?

qyzkqrh
join shbcf.ru