I have a few test cases which would always fail. I'm using pytest-quarantine module to mark those test case as xfail using a quarantine.txt.
- If the marked test fails, it marks XFAIL
- If the marked test passes, it results into XPASS
However, with this approach, the test cases are still being executed taking a lot of time in the whole test suit.
Is there a way, I can skip the test cases mentioned in quarantine.txt?
Note: I have a single test case which is being executed with around 1500 parameters to test each scenario. So marking the failing test with @skip is not an option for me. Currently, test with around 150 parameters is failing. I am using a fixture to parametrize the single test case.
pytest-quarantine link: https://pypi.org/project/pytest-quarantine/