3 Simple Ways To Ignore Test Directories in Pytest
Have you ever had tests fail due to irrelevant or outdated code?
Perhaps adding to the confusion of debugging and troubleshooting along with unnecessary test execution time.
Or maybe you have code in development that’s not ready to be tested yet.
In such cases, you might want to exclude certain tests from your test suite.
But how do you do it in Pytest? You can of course run pytest
in the relevant directories but that’s not very efficient.