gdl icon indicating copy to clipboard operation
gdl copied to clipboard

APPLEMAN: add test writing output to a file and checking if output matches reference file?

Open slayoo opened this issue 4 years ago • 5 comments

As of now, we have a regression - this used to show a figure, now just a blank screen, would be great to have a test capturing such case

slayoo avatar Jan 09 '22 16:01 slayoo

Appleman does show a figure, but it will be dark if the device is in decomposed state. I've forced device to be in decomposed=0 in #1261

GillesDuvert avatar Jan 13 '22 12:01 GillesDuvert

@slayoo, I believe APPLEMAN is not useful as a test and was not used to this purpose until now. Not that the Mandelbrot Set is not nice, but if we need a "complicated" image, then it would be better to replace Saturn.jpg with it. There are numerous tests on plotting images in many conditions in testsuite/interactive_tests that cover (or should cover) the subject. Starting with test_tv.pro up to test_widgets.

GillesDuvert avatar Jan 20 '22 09:01 GillesDuvert

My point here was not about appleman itself (as it has not changed), more about an unnoticed (i.e. not covered in tests) change in GDL behaviour that one will notice if having developed a script doing visualisation in analogous way as is done in appleman.pro.

slayoo avatar Jan 20 '22 15:01 slayoo

That's the point of the interactive_tests, no? But indeed they are, er, interactive, so somebody has to run them and check. Far from perfect indeed...

GillesDuvert avatar Jan 20 '22 19:01 GillesDuvert

somebody has to run them and check. Far from perfect indeed...

Well, first one needs to know what is the expected behaviour... :)

slayoo avatar Jan 20 '22 19:01 slayoo