In the pytest framework, how do you mark a test function so that it is not executed by the test runner?

  • @pytest.disable()
  • @pytest.exclude()
  • @pytest.ignore()
  • @pytest.skip("Test not ready yet")
In pytest, you can use the @pytest.skip("Reason") decorator to mark a test function so that it is not executed. You can provide a reason for skipping for documentation purposes.
Add your answer
Loading...

Leave a comment

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