Link Search Menu Expand Document

Mark a test as unskippable

This feature is supported in the following testing frameworks:

pytest

If you’re using pytest, you can tell YourBase Test Acceleration to never skip a specific test using decorators as shown in the below example:

import pytest

# decorator to never skip this test
@pytest.mark.do_not_accelerate
def test_function():
   # ...

The decorator @pytest.mark.do_not_accelerate ensures that the test_function() is never skipped, even where there are no code changes in its dependencies.

unittest

If you’re using unittest, you can tell YourBase Test Acceleration to never skip specific tests using decorators as shown in the below example:

import yourbase.plugins.unittest as yourbase

# decorator to never skip this test
@yourbase.do_not_accelerate
class TestClass(unittest.TestCase):
   def test_function():
      # ...