facebook / screenshot-tests-for-android

Generate fast deterministic screenshots during Android instrumentation tests
http://facebook.github.io/screenshot-tests-for-android
Apache License 2.0
1.74k stars 229 forks source link

Library forces arbitrarily small image width #300

Open Nattle opened 2 years ago

Nattle commented 2 years ago

I work on integrated devices and we target a few specific screen sizes. For our tests it is extrememly useful to have screen shots of an entire screen / activity. Stitching them together with imagemagick is possible but adds another layer of tooling / processing.

This is our current fix, with which I have a love / hate relationship: FieldUtils.writeField(ScreenshotImpl.getInstance(), "mTileSize", 1366, true);

I would much rather have ScreenshotImpl.getInstance().overrideScreenSize(...) or some such.

Nattle commented 2 years ago

bump?

Any better solution to this than reflection?