Replies: 3 comments 3 replies
-
Two ideas that I personally like, in order of preference:
|
Beta Was this translation helpful? Give feedback.
-
A little update: I have also had a chat with one of the projects and they are interested in dropping their dependency on iris.tests |
Beta Was this translation helpful? Give feedback.
-
Can we name names, do you have a list ? I am aware of iris-grib, and also ncdata of course. |
Beta Was this translation helpful? Give feedback.
-
I recently discovered that there are libraries that depend on Iris tests, i.e. they use iris as part of their code, but they also use some of the code from
iris.tests
in their own testing e.g. inherit fromiris.tests.IrisTest
.This is of concern as I am not aware of any rules/guidance/contract about backwards compatibility around tests. I would have thought that semantic versioning only applied to the code. So perhaps it is just the case that we have no formal contract determiningin what will happen to testing code and we are free to change it as we wish.
I wanted to raise this as I know there are plans for changes to Iris' testing and we should consider how this may impact users. In particular I would be interested in your thoughts on:
iris.tests
a) Continue as planned and just make changes as needed for the Iris project
b) Add a note in the whats new to warn of changes, but still make them anyway
c) Try to identify libraries that are using Iris' tests and start up conversation about how this change should be managed.
Whatever we choose, it may also make sense to add something to the docs to explain what the contract around
iris.tests
is.Another thing worth mentioning is that there are other packages that provide some testing utilities. For example numpy provides some test support through numpy.testing. These appear to be under some versioning contract as I have seen deprecation notices in this code (for example here). And xarray offer a similar thing with xarray.testing. We could consider offering a similar option to our users (
iris.testing
) and keep that separate to (iris.tests
)?Beta Was this translation helpful? Give feedback.
All reactions