Step 6 - Pytest tutorial: Skipping Tests

Published: 15 June 2020
on channel: PyCharm, a JetBrains IDE
2,834
19

👉 Watch the updated video on how to skip or run tests in pytest with PyCharm:    • How to skip or run tests in pytest wi...  

During refactoring, use pytest's markers to ignore certain breaking tests.

00:00 - Start
00:13 - Get back into "TDD Mode"
00:26 - Start by running all tests
00:34 - Add a failing test for the new feature
00:49 - Temporarily suppress it with "skip"
01:07 - Fix the implementation
01:24 - Remove the marker
01:48 - Improve the typing to allow a tuple
02:15 - Write failing test for second feature, apply the "skip" marker
02:30 - Implement the feature
02:45 - Remove the marker

More on this tutorial step: https://www.jetbrains.com/pycharm/gui...
The full tutorial: https://www.jetbrains.com/pycharm/gui...
See tips, tutorials, and more in the PyCharm Guide: https://www.jetbrains.com/pycharm/guide/


Watch video Step 6 - Pytest tutorial: Skipping Tests online without registration, duration hours minute second in high quality. This video was added by user PyCharm, a JetBrains IDE 15 June 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 2,834 once and liked it 19 people.