skillfed

pytest-skip-markers

Pytest Salt Plugin

pytest-skip-markers v1.5.2 74.4K downloads/30d#14,836 on PyPI4
Permissive license Apache Software License 2.0 DORMANT released

What it is and what it does

pytest-skip-markers is a pytest plugin that provides a collection of pre-built skip markers to simplify conditional test skipping. Instead of writing custom skip logic for platform-specific or environment-specific tests, you decorate test functions with markers like @pytest.mark.skip_unless_on_linux to skip tests based on runtime conditions. The plugin was extracted from pytest-salt-factories and targets common scenarios such as platform-specific test execution.

The package depends on pytest as its core framework, along with attrs, distro (for OS detection), and pywin32 (for Windows support). It supports Python 3.8 through 3.12 and is classified as Production/Stable. The codebase is typed, making it compatible with static type checkers.

Use it for:

  • Skip Linux-only tests when running on Windows or macOS without manual platform checks
  • Conditionally run Windows-specific tests only on Windows systems during CI/CD
  • Reduce boilerplate by using declarative markers instead of if-statements in test functions
  • Simplify test suites that need to run different tests across multiple operating systems

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

A pytest plugin that provides skip markers to conditionally skip tests based on platform, OS, and other runtime conditions without writing custom skip logic.

Yes, if you have platform-specific tests and want to reduce skip-logic boilerplate. The package is stable and has no known vulnerabilities. However, note that it has been dormant for 735 days—while the repository is not archived and recent commits exist, you should verify that the available markers match your needs before adopting it, as the feature set may not have evolved recently.

Install

pytest-skip-markers on PyPI

pip

pip install pytest-skip-markers

uv

uv add pytest-skip-markers

poetry

poetry add pytest-skip-markers

Installing pytest-skip-markers

Before you install

Low friction install with stable maintenance. The package is dormant (735 days since last release) but the repository remains active with a recent commit on 2024-08-09. Dependencies are lightweight: pytest, attrs, distro, and pywin32.

License in practice

Licensed under Apache Software License 2.0 (permissive). You can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.

Quickstart

pip install pytest-skip-markers

import pytest

@pytest.mark.skip_unless_on_linux
def test_on_linux():
    assert True

Verify before relying

  • The specific skip markers available beyond skip_unless_on_linux are not detailed in the excerpt
  • Whether pywin32 is a required runtime dependency or optional for Windows-only functionality

Package facts

License Apache Software License 2.0 (permissive)
Python support supports the current Python release (>=3.8)
Install friction low — pure-Python wheel
Runtime dependencies 4 — pytest, attrs, distro, pywin32
Maintenance dormant — 735 days since the last release
Last repo commit
First released
Downloads 74,428/month — #14,836 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: pytest_skip_markers-1.5.2-py3-none-any.whl

Development Status :: 5 - Production/StableFramework :: PytestIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: CythonProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Typing :: Typed

Tags

pytest skip markersconditional test skippingplatform-specific test markerspytest platform skipskip tests by ospytest conditional markerstest skipping plugin
pytest-plugintest-markersplatform-detection

More Testing packages

pluggy

Pluggy provides a plugin system that lets you…

permissive · top 100 on PyPI

pytest

pytest is a testing framework that lets you…

permissive · top 100 on PyPI

virtualenv

virtualenv creates isolated Python environments…

permissive · top 100 on PyPI

coverage

Coverage.py measures which lines of Python code…

permissive · top 1,000 on PyPI

pytest-asyncio

pytest-asyncio is a pytest plugin that enables…

permissive · top 1,000 on PyPI

pytest-json-ctrf

A pytest plugin that generates test reports in…

permissive · top 1,000 on PyPI

pytest-dependency

A pytest plugin that marks tests as dependent…

permissive · top 5,000 on PyPI

pytest-fixture-config

Provides configuration objects and decorators…

permissive · top 15,000 on PyPI

pytest-skip-slow

A pytest plugin that skips tests marked with…

permissive · top 15,000 on PyPI

pytest-only

A pytest plugin that runs only tests marked…

permissive · top 15,000 on PyPI

pytest-integration

A pytest plugin that organizes tests into unit,…

permissive · top 15,000 on PyPI

coverage-conditional-plugin

A coverage.py plugin that applies conditional…

permissive · top 15,000 on PyPI

pytest-depends

A pytest plugin that lets you declare…

permissive · top 15,000 on PyPI

conditional

Conditionally apply a context manager to a code…

permissive · top 15,000 on PyPI

pytest-enabler

A pytest plugin that conditionally enables…

permissive · top 15,000 on PyPI

pytest-remotedata

A pytest plugin that lets you mark and…

permissive · top 15,000 on PyPI