Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pytest -f does not notice new tests #532

Closed
pytestbot opened this issue Jun 25, 2014 · 2 comments
Closed

pytest -f does not notice new tests #532

pytestbot opened this issue Jun 25, 2014 · 2 comments
Labels
plugin: cache related to the cache builtin plugin plugin: xdist related to the xdist external plugin type: bug problem that needs to be addressed

Comments

@pytestbot
Copy link
Contributor

Originally reported by: Dima Tisnek (BitBucket: dimaqq, GitHub: dimaqq)


pytest -f appears to latch to the set of test cases on first run and does not detect when new test is added.

e.g. test_foo.py:
def test foo(): assert 0

run pytest -f test_foo.py
(one test failing)

edit test_foo.py, add
def test_bar(): assert 0
(still only one test failing)


@pytestbot pytestbot added type: bug problem that needs to be addressed plugin: xdist related to the xdist external plugin labels Jun 15, 2015
@RonnyPfannschmidt
Copy link
Member

this is a design failure, its also a issue in pytest-cache and should be tackled

@RonnyPfannschmidt
Copy link
Member

closing as pytest-dev/pytest-xdist#111 is the followup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugin: cache related to the cache builtin plugin plugin: xdist related to the xdist external plugin type: bug problem that needs to be addressed
Projects
None yet
Development

No branches or pull requests

2 participants