-
Notifications
You must be signed in to change notification settings - Fork 300
Convert graphics tests to integration tests #2150
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
Conversation
I'm assuming you mean the files Is it possible to split this change into two commits to make it easier to see what's changed? One commit with the code changes and a separate one for moving the files. |
eeeef9f to
0c63a51
Compare
It took a while and was fairly circuitous, but I have managed to apply this now... |
|
I've fixed a problem with importing from the |
|
@marqh your thoughts on this possible route for helping the graphical tests along would be appreciated! |
28cb892 to
444b9ae
Compare
|
to improve the log output rendering, I suggest removing from |
|
all the tests that I see failing are graphics test which are making images but the tolerances are very large @dkillick please could you put an image and it's comparison from one of these tests into the ticket so we can see what kind of change we are talking about, perhaps from: |
Done - thanks @marqh. Of course this need not be a permanent change! It will just make this particular PR a lot more manageable... |
bb3191e to
b565e3b
Compare
I've added a commit demonstrating the before-after difference for one of the files (the one suggested above). If you take a look at the diff you'll see there is quite a large difference between the two files. Taking a step back and thinking about this, the large diff makes a lot of sense. The test that produced this particular image was actually a quickplot test masquerading as a plot test. There were a number of examples of these, where My thought then is that the new file is appropriate for testing the functionality at the core of this test and that the new image should stand. Would anyone like to counter this? |
|
@dkillick - I agree with the aspiration to reduce the total number of graphics tests and appreciate the effort that you have gone to to make this a coherent PR, but I'm not sure that anybody will be able to review this change without running the risk of potentially missing a significant reduction in corner case testing... |
|
This has gone stale. |
|
@pp-mo the trick with this PR is in its description: it was my proposal for improving the Iris visual tests. I think it did some useful things by generally improving the code standard of |
Here's my proposal for easing the graphics testing issues in Iris. Specifically, this PR proposes...
iris.tests.plotandiris.tests.quickplot, but retaining thetestCoordinatesGiventests, as well as a few other tests to try and maintain test coverage.iris.tests.plotandiris.tests.quickplotto a new integration tests folder;iris.tests.integration.plotting, with the thinning described in the previous point applied.iris.tests.integration.plotting.__init__.pyThis PR (at time of raising) does not:
These things can be done at a later date if this proposal acquires traction.
@bjlittle @pelson @marqh @lbdreyer @djkirkham your input would be appreciated.