Skip to content

Nutty idea to make tests faster and more reliable #2491

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

Closed
msabramo opened this issue Mar 6, 2015 · 4 comments
Closed

Nutty idea to make tests faster and more reliable #2491

msabramo opened this issue Mar 6, 2015 · 4 comments
Labels
auto-locked Outdated issues that have been locked by automation

Comments

@msabramo
Copy link
Contributor

msabramo commented Mar 6, 2015

It's late and I should probably be going to sleep so this might be nuts.

A lot of test failures and slowness I think come from the fact that the tests install stuff from PyPI.

What if the pip tests could spin up a mini PyPI server that runs locally? Presumably getting PyPI or Warehouse to work would be too much of a pain because of databases and all that jazz, but maybe a SimpleHTTPServer serving up a directory full of tarballs?

@dstufft
Copy link
Member

dstufft commented Mar 6, 2015

This is something I think we should have. It might need to be more complicated than a SimpleHTTPServer (but then again, maybe not? I don't know). It would speed things up since everything would be happening over localhost and it would reduce the intermittent failures. We could probably steal from pytest-dbfixtures a way to spin up a service in the background and then shut it down when the session is over (or not, I don't know). Ideally nothing would be required to do except run the test suite, it should spin up it's own test server instance.

@qwcode
Copy link
Contributor

qwcode commented Mar 6, 2015

If I may be so bold, in the interest of reducing the issue count, close this as a dupe to #259.... : )

@qwcode qwcode closed this as completed Mar 6, 2015
@msabramo
Copy link
Contributor Author

msabramo commented Mar 6, 2015

Yeah, I remember now that pytest-httpbin forks a process with httpbin, a simple Flask app, so I don't see why we couldn't do the same.

@msabramo
Copy link
Contributor Author

msabramo commented Mar 6, 2015

Closing issues is good 😄

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 5, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation
Projects
None yet
Development

No branches or pull requests

3 participants