An Ultimate Guide To Using Pytest Skip Test And XFail - With Examples
Have you had to ship code without fully functional Unit Tests?
In an ideal world, you have all the time in the world to write thorough Unit and Integration tests.
But the real world wants features and bug fixes, like yesterday. This presents a challenge.
Fortunately, can “skip” or “fail” tests that are related to an upcoming feature or bug-fix and not yet ready.
Or perhaps you don’t want to run some tests every single time (e.g. connection to an external DB or API).