-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Drop duplicated tests by default #1609
Labels
topic: collection
related to the collection phase
Milestone
Comments
i#d be happy to see this removed as well, |
This was referenced Sep 23, 2016
This was referenced Jul 13, 2017
This was referenced Jul 20, 2017
This was referenced Jul 28, 2017
This was referenced Aug 10, 2017
This was referenced Sep 1, 2017
This was referenced Sep 15, 2017
This was referenced Sep 29, 2017
This was referenced Oct 29, 2017
This was referenced Nov 11, 2017
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
py.test
will happily run the same tests more than once if you provide multiple path arguments which contain the same test files:This will execute all tests from
model/tests
twice.While there are some edge use cases where this useful (#1187), it seems in general users are confounded by this behavior more than delighted it exists (#1607).
I think we should discuss if we should drop duplicated tests by default, perhaps introducing a new
--keep-duplicates
if we want to preserve the old behavior.EDIT: if we decide to keep running duplicated tests, we should at least document the behavior (see comment), possibly mentioning pytest-drop-dup-tests as a workaround.
The text was updated successfully, but these errors were encountered: