-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Add screenshot testing #8040
Comments
@Guardiola31337 Thank you for starting this effort, it's very helpful. Considering we're already using Firebase, any reasons/advantages to not use their tools? |
@zugaldia I haven't used test-screenshots from Firebase before. Because of that, I started with screenshot-tests-for-android from Facebook in the first place. But, definitely I have to try the Firebase solution, because All the findings are explained in the Add TextureView/SurfaceView support ticket. Next step would be to check |
@Guardiola31337 sounds like a plan 👍 . I also subscribed to facebook/screenshot-tests-for-android#55 and see if we get some insights there. |
I wrote a test which loads a simple map, adds a marker and takes a screenshot. The test is working properly as you can see in the following video: We could report the issue to Google (asking them if they are going to support this in the near future) or we could spend more time adding it ourselves to What do you think? Any alternative? Cc/ @mapbox/android |
Good research @Guardiola31337 .
Is Firebase's tool open source like Facebook's?
It looks like fixing one (say Facebook because it's open source) will help fixing the other, and therefore getting us more options to test. |
No, it's not. Actually, to make it work, you have to include a private library called
Definitely, it seems a similar issue on taking screenshots of maps. In order to check that it's not only a problem with maps from Mapbox, I wrote a test using GMaps and I got the same results cc/ @zugaldia |
@Guardiola31337 In that case, let's favor working on the open source option. |
Follow up answer 👉 screenshot-tests-for-android#55 and PR 👉 screenshot-tests-for-android#71 which unblocks Mapbox screenshot testing issues. At the moment, it only works when using render texture mode, i.e. |
We're gonna start working on adding screenshot testing to the SDK Test App.
Espresso doesn't find native views to assert on.
This will let us to add test coverage to some use cases (e.g. Add a marker to a map).
There are some options to add screenshot testing in Android:
Any thoughts?
cc/ @mapbox/android
The text was updated successfully, but these errors were encountered: