In pytest, the ____ marker is used to skip a test function under certain conditions.

  • @pytest.ignore
  • @pytest.run
  • @pytest.skip
  • @pytest.xfail
In pytest, the @pytest.skip marker is used to skip a test function when certain conditions are met. This allows you to selectively skip tests based on runtime conditions or configurations.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *