Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Rework instrumentation tests #8793

Merged
merged 1 commit into from
Apr 21, 2017
Merged

Rework instrumentation tests #8793

merged 1 commit into from
Apr 21, 2017

Conversation

tobrun
Copy link
Member

@tobrun tobrun commented Apr 21, 2017

closes #8547

This PR reworks the instrumentation test to not use MapboxMap in @before. This solves the issue of #8547 where we are running in a race condition that the MapboxMap wasn't actually ready to start executing the tests. This is because we are posting the MapboxMap creation at the end of the message queue. With this change, I reworked the tests into using a base test class and introduced a validateTestSetup method. This method currently asserts if we have an active internet connection. This should make identifying device issues easier on CI (as it would currently fail with an obscure espresso exception).

@tobrun tobrun added the Android Mapbox Maps SDK for Android label Apr 21, 2017
@tobrun tobrun added this to the android-v5.1.0 milestone Apr 21, 2017
@tobrun tobrun self-assigned this Apr 21, 2017
@zugaldia
Copy link
Member

@tobrun PR looks good though I just realized CI is complaining of checkstyle issues in the Test App.

@tobrun tobrun force-pushed the tvn-instrumentation-testing branch 3 times, most recently from ba66f39 to d040e5f Compare April 21, 2017 20:34
@tobrun tobrun force-pushed the tvn-instrumentation-testing branch from d040e5f to 198d06d Compare April 21, 2017 20:37
@tobrun tobrun merged commit eed7ded into master Apr 21, 2017
@tobrun tobrun deleted the tvn-instrumentation-testing branch April 21, 2017 21:07
@tobrun tobrun mentioned this pull request May 2, 2017
12 tasks
@tobrun tobrun mentioned this pull request Jun 9, 2017
12 tasks
@tobrun tobrun mentioned this pull request Jun 21, 2017
11 tasks
@tobrun tobrun mentioned this pull request Jun 30, 2017
16 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NullPointerException RuntimeStyle tests
2 participants