-
-
Notifications
You must be signed in to change notification settings - Fork 470
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
Strategy for Tests #322
Comments
I looked around a bit. Maybe we can put together some resources to get started. For #265 I'd want a bunch of "mock" projects modeled after popular Python projects that still use setup.py or setup.cfg. I'd add that to the PR if you'd like. For tests with a package index we could have distribution files for different repository types. So legacy, pypi-latest, etc. I haven't built a testsuite that uses a dummy package index, but it'd be nice to just serve it with those files for any tests. It doesn't have to just be popular projects we have testing for. The same testsuite structure could be used for any kind of project/repository target. |
Given #346 it seems even something super simple that does not use pypi would be valuable. test rye init, setup local projects, workspace, rye add path dependencies and sync, then assert certain files exist or assert rye show understands the workspace correctly. |
I want to give this some priority. I think for now I will focus mostly on getting it running in CI somehow. That is
I ran into some issues that the output of pip and tools it invokes are highly erratic and non snapshottable, maybe the solution would be for now to mostly snapshot in quiet mode. |
This is how CLI tests could look for If you feel ok with such approach I could complete a PR. |
Is this still what you're thinking? |
I believe so, yes. |
Rye has basically no tests and that is becoming a growing issue. I have originally tried to build something on insta-cmd but that alone is not good enough as there is just too much that needs to be built around it.
In particular it's quite dependent on the state of the package index so it might be wise to serve up a dummy index with well known packages and metadata.
The text was updated successfully, but these errors were encountered: