Skip to content

Quarantined tests still failing are removed on next run #38

Description

@js-dieu

Hello

Situation
Consider the following test module:

def test_will_fail():
    assert False

def test_will_succeed():
    assert True

Given the following quarantine.txt file:
test_that.py::test_will_fail
Running the test suite with the following command line
pytest --quarantine quarantine.txt --save-quarantine quarantine.txt
causes the quarantine file to be empty.

Expectation
I would have expected quarantined tests still failing not to be removed from the newly generated quarantine.

Proposal
Do not remove tests already quarantined from the quarantine file if they fail to complete.
If this behavior is to be kept, propose an option for doing so.

Side note
I can propose a PR if you want.

Environment

  • python: 3.6.8
  • pytest: 6.0.1
  • pytest-quarantine: 2.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions