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

return non-zero exit code if no tests are collected #817

Merged

Conversation

nicoddemus
Copy link
Member

Fix #812
Fix #500

@nicoddemus nicoddemus force-pushed the non-collection-exit-error branch 2 times, most recently from 308e266 to 4b8b067 Compare July 4, 2015 18:20
@nicoddemus
Copy link
Member Author

All xdist jobs (py27-nobyte, py27-xdist, py27-subprocess) are failing because they depend on this PR on pytest-xdist.

Now, why py33-xdist did not fail is a mystery to me. 😟

@bubenkoff
Copy link
Member

looks fine, but we should wait for xdist pr to be merged and released?

@nicoddemus
Copy link
Member Author

Looks fine, but we should wait for xdist pr to be merged and released?

Yes, otherwise master will appear broken until then.

@The-Compiler
Copy link
Member

This also fixes #662.

@untitaker
Copy link
Contributor

The xdist seems to be merged (even if accidentally). Could somebody give this another shot?

@nicoddemus
Copy link
Member Author

Waiting for a new pytest-xdist release. @RonnyPfannschmidt is working on it! 😄

@RonnyPfannschmidt
Copy link
Member

@nicoddemus pytest-xdist 1.13 was just released

@nicoddemus
Copy link
Member Author

@RonnyPfannschmidt could you publish 1.13 on devpi as well?

@RonnyPfannschmidt
Copy link
Member

@nicoddemus which index?
im not sure i have access there

@nicoddemus
Copy link
Member Author

Hmm .travis.yml is configured to use https://devpi.net/hpk/dev... @hpk42, could you please include 1.13 in your index?

@RonnyPfannschmidt
Copy link
Member

we should perhaps create a aggregate index to begin with

@nicoddemus
Copy link
Member Author

Perhaps the default for travis should be just use pypi packages? That's how AppVeyor is configured at the moment, and branches that want to test against packages in devpi can specify so in the travis.yaml file before being merged.

@RonnyPfannschmidt
Copy link
Member

good point

@nicoddemus
Copy link
Member Author

Weird, I can't reproduce the failures locally... 😞

@RonnyPfannschmidt
Copy link
Member

those failures are relates to xdist 1.13 - moving boxed into the xdist.boxed plugin broke the code that imported the plugin that way

@nicoddemus
Copy link
Member Author

I couldn't reproduce that on my machine before because those tests are skipped on Windows, as it doesn't have a fork() function. 😊

I fixed the import, and all is green again.

@RonnyPfannschmidt
Copy link
Member

i hope we can have a funeral for boxed as is soonish ^^

@nicoddemus
Copy link
Member Author

Nice. That would be a pytest-xdist 2.0 then?

Also, any other comments before merging this in?

@RonnyPfannschmidt
Copy link
Member

roughly after cache and looponfail land in core, there will be a xdist 2.0 that does only the distributed/multicpu testing

RonnyPfannschmidt added a commit that referenced this pull request Aug 21, 2015
return non-zero exit code if no tests are collected
@RonnyPfannschmidt RonnyPfannschmidt merged commit 287df16 into pytest-dev:master Aug 21, 2015
@bubenkoff
Copy link
Member

great job!

@nicoddemus nicoddemus deleted the non-collection-exit-error branch August 25, 2015 22:30
saaros pushed a commit to ohmu/pytest-xdist that referenced this pull request Oct 26, 2015
Upstream changes in pytest-dev/pytest#817 make
pytest-dist always return EXIT_NOTESTSCOLLECTED because the
master node doesn't collect any tests. This patch updates the pytest session
about the collected items on the slaves.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.008%) to 92.444% when pulling 3e41c3c on nicoddemus:non-collection-exit-error into 37ed391 on pytest-dev:master.

sergio-correia added a commit to sergio-correia/keylime that referenced this pull request Jul 31, 2024
Newer versions of pytest exit with status 5 to indicate no tests were
collected to run: pytest-dev/pytest#817

Let's take that into account in the run_tests.sh script.

Signed-off-by: Sergio Correia <[email protected]>
sergio-correia added a commit to sergio-correia/keylime that referenced this pull request Aug 2, 2024
Newer versions of pytest exit with status 5 to indicate no tests were
collected to run: pytest-dev/pytest#817

Let's take that into account in the run_tests.sh script.

Signed-off-by: Sergio Correia <[email protected]>
THS-on pushed a commit to keylime/keylime that referenced this pull request Aug 2, 2024
Newer versions of pytest exit with status 5 to indicate no tests were
collected to run: pytest-dev/pytest#817

Let's take that into account in the run_tests.sh script.

Signed-off-by: Sergio Correia <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants