<div dir="ltr">Hi Jonathan<br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 9, 2015 at 12:49 AM, Jonathan Moules <span dir="ltr"><<a href="mailto:J.Moules@hrwallingford.com" target="_blank">J.Moules@hrwallingford.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">I wonder, might it be worth adding a test for it as well? Now that QGIS has unit tests, the more the merrier?<br></blockquote><div><br></div><div>In general writing unit tests for graphical interface code is difficult and they are of limited use. They are typically fragile, they add maintenance overhead and there are too many states to test. Those who know [1] recommend to focus on tests for the core logic (in our case mainly qgis_core library). GUI bugs are usually minor and easy to spot and fix, while core logic bugs cause most of serious problems.</div><div><br></div><div>Cheers</div><div>Martin</div><div><br></div><div>[1] <a href="http://misko.hevery.com/about/">http://misko.hevery.com/about/</a></div></div></div></div>