-
Notifications
You must be signed in to change notification settings - Fork 283
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
Don't ship the tests with iris #3416
Comments
Removing the tests will mean it is not possible to run the tests on an installed version. That may or may not be OK, I'm not sure. It is worth considering this use case at least. |
Hey @ajdawson! Great to hear from you 😄 I definitely think it's worthwhile considering. Just though I'd have the debate here... My line of thought was that if Hmmm I dunno... What I do know is that currently there is ~9.5MB of code sitting under |
I can buy that line of thought. I guess packaging the tests used to make a lot of sense before conda and wheels were prevalent and we used to have to install from source ourselves. I will not object to proceeding with this work. |
I'm 👍 on this in principle, but we should take the opportunity improve the "how to" descriptions for new developers : At present the "Developer's Guide" assumes a distressing level of proficiency, E.G. it lays out how to write tests + where to put them without ever explaining "how to run the tests". |
It ran last time I tried, though I had failures in places I hadn't touched. I also got failures because |
@SciTools/peloton are all in favour of this 👍 We acknowledge that for certain cases it makes it more difficult to test that Iris is working in an environment into which it is installed, but for those cases it's still possible to run the tests in ANY environment - PROVIDING THE |
I very regularly run the tests in freshly created environments to ensure that iris is functional. Notably, not all the tests pass (!) but this is usually due to image comparison failures or slightly different string formatting or something else caused by different versions of dependencies in my installed environment. Nonetheless it is helpful to get that assurance that the environment works as expected, after confirming any test failures are okay. Everytime I run the tests in a conda environment, I think of this issue and how much of a pain it would be if the tests weren't there in the install. I could go searching the repo for the tests and download them when I want to run the test in my environment but this would be a bit cumbersome. So unless the tests get much bigger such that the install of iris is unreasonably large, I would prefer we kept them |
Cool, let's maintain packaging the tests within Thanks everyone for chipping in, much appreciated 😄 |
After a
So the bulk of the "tests" are the results directory and the stock arrays file. Those could potentially be moved into the test data repo if we wanted to trim some weight? |
Lift and shift the
iris.tests
out and up to the root directory (same level assetup.py
) to avoid installing the tests withiris
.Also collapse the
lib
directory, it's not necessary.The text was updated successfully, but these errors were encountered: