linz / gazetteer

New Zealand Gazetteer of official place names
http://www.linz.govt.nz/regulatory/place-names/find-name/new-zealand-gazetteer-official-geographic-names/new-zealand-gazetteer-search-place-names#zoom=0&lat=-41.14127&lon=172.5&layers=BTTT
Other
2 stars 2 forks source link

edit geom test causing CI to hang. #185

Closed SPlanzer closed 4 years ago

SPlanzer commented 4 years ago

Tests passes when executed in QIGS locally but CI hangings.

SPlanzer commented 4 years ago

This will be because tests map map coordinates to screen coordinates and CI will have a different screen resolution.

I have raised the below question in the QGIS slack channel

RE: QGIS Testing and CI. Developing automated tests that involve transforming map coordinates to screen coordinates can see tests fail with different screen resolutions. This often sees tests the click on features (and often move them elsewhere) fail in CI due to the different resolution. For those that have written such tests (@Daniel Silk, @Pete, @Megan@Ben Cheng...?) is there a trick to ensure clicks land where they should across different resolutions?

SPlanzer commented 4 years ago

The issue in the end was not screen resolution but QGIS throwing a blocking window asking if the user wanted to use python macros - #186 resolves this.