TheBeruriahIncident / leafbyte

LeafByte is a free and open source mobile app for measuring herbivory quickly and accurately
https://zoegp.science/leafbyte
GNU General Public License v3.0
5 stars 2 forks source link

Testing for exclude area and drawing margins #28

Open TheBeruriahIncident opened 2 months ago

TheBeruriahIncident commented 2 months ago

Right now none of the test data or test flows include either area exclusions or margin damage. This is obviously bad, and we need to test these. It's unfortunately unclear how to make non-UI tests cover this, so we need to figure how to make the UI tests support this. Perhaps we need to use a fixed simulator and test touches at specific pixel locations? That feels very fragile. At least for excluding area, I could imagine scanning for the exact light green and tapping that, but the API for that is not clear.