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

Number of collected items exceeds the number of tests executed in the test summary #3419

Closed
SachdevaS opened this issue Apr 22, 2018 · 3 comments
Labels
status: needs information reporter needs to provide more information; can be closed after 2 or more weeks of inactivity type: question general question, might be closed after 2 weeks of inactivity

Comments

@SachdevaS
Copy link

SachdevaS commented Apr 22, 2018

Issue/Question

  • I am running a test suite where the number of items collected is: "collected 263 items", but the test summary only shows a summary of 220 tests -
    ============= 2 failed, 170 passed, 48 skipped in 796.99 seconds ==============, I am unable to understand what could be the reason behind this that 263 items are collected, but only 220 tests ran? Do the collected items not symbolise the number of tests collected to run?

Pytest version and operating system

  • [platform win32 -- Python 3.5.4, pytest-3.5.0, py-1.5.2, pluggy-0.6.0 -- c:\python35\python.exe ] , using windows10

Also if I run with --collect-only, I get collected items 263, but actually only 220 tests are shown in the list.

@pytestbot
Copy link
Contributor

GitMate.io thinks possibly related issues are #239 (not collect deselected tests), #596 (xdist is not executing tests if their parametrizations were collected in a different order), #1075 (xdist: Different tests were collected), #2464 (Incorrect number of collected items reported when specific class methods are provided), and #3323 (MemoryError from xmlgen for a big number of tests).

@RonnyPfannschmidt
Copy link
Member

that's indeed a bit unexpected, if possible please provide a full collect output and full test output
if permissible also include a listing of all involved files, preferably as text formatted tree, but i have no idea if thats easy to do on windows)

@nicoddemus nicoddemus added type: question general question, might be closed after 2 weeks of inactivity status: needs information reporter needs to provide more information; can be closed after 2 or more weeks of inactivity labels Apr 23, 2018
@Zac-HD
Copy link
Member

Zac-HD commented Dec 5, 2018

Closing due to insufficient information.

@Zac-HD Zac-HD closed this as completed Dec 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs information reporter needs to provide more information; can be closed after 2 or more weeks of inactivity type: question general question, might be closed after 2 weeks of inactivity
Projects
None yet
Development

No branches or pull requests

5 participants