Skip to content

Can you parse pytest marks as tags in Testomat.io?

Yes — starting with pytestomatio 2.13.0b0 (beta), pytest markers can be synced to Testomat.io as tags.

  1. Install the version with tags support

    pip install pytestomatio==2.13.0b0
  2. Define which markers become tags with the TESTOMATIO_TAG_MARKERS environment variable (an allowlist — pytest and plugin service markers are not picked up automatically):

    TESTOMATIO_TAG_MARKERS=smoke,release
  3. Or add tags with the dedicated marker:

    pytest.mark.testomatio_tags("smoke", "release")