Skip to content

A simple pytest plugin to skip flapping test with deadline

License

Notifications You must be signed in to change notification settings

bp72/pytest-skipuntil

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pytest-skipuntil

PyPI version Python versions See Build Status on AppVeyor

A simple pytest plugin to skip the tests with deadline in a simple way


Features

  • Use this marker to specify the deadline for the skip: a convenient decorator to prevent skipping tests and never going back to fix them. When the deadline is behind, the test will start failing again.

Requirements

  • pytest
  • python>=3.8

Installation

You can install "pytest-skipuntil" via pip from PyPI:

$ pip install pytest-skipuntil

Usage

  • Use it as a decorator for the test that you want to skip:

    @pytest.mark.skip_until(
        deadline=datetime(2023, 12, 11),
        msg='This test requires a fix, but I can't do it right now :('
    )
    def test_something():
        ...
    

The test will be skipped until 11/12/2023, but it will start failing again after this date, so you'll be reminded to make a fix.

Contributing

Contributions are very welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.

License

Distributed under the terms of the MIT license, "pytest-skipuntil" is free and open source software

Issues

If you encounter any problems, please file an issue along with a detailed description.

About

A simple pytest plugin to skip flapping test with deadline

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages