-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Conversation
34ff603
to
7133ace
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor request, otherwise, looks good 🚀
@@ -27,7 +27,7 @@ public class <%- activity %>Test extends BaseActivityTest { | |||
|
|||
@Test | |||
public void testSanity() { | |||
validateTestSetup(); | |||
// no-op |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we remove this test all-together?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For now I would keep the sanity tests around, updated above block however with assertions for mapboxMap, style and fully loaded.
public void initMap(MapboxMap mapboxMap) { | ||
super.initMap(mapboxMap); | ||
mapboxMap.getStyle(style -> { | ||
if (resourceCallback != null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add an assertion checking that the style is fully loaded?
public void initMap(MapboxMap mapboxMap) { | ||
super.initMap(mapboxMap); | ||
mapboxMap.setStyle("asset://streets.json", style -> { | ||
this.style = style; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above.
* Uses {@link LoadStyleIdlingResource} to load "assets/streets.json" as style. | ||
* </p> | ||
*/ | ||
public class EspressoActivityTest extends BaseActivityTest { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we rename EspressoActivityTest
to EspressoTest
? Similarly with BaseActivityTest
. It's a little bit hard to read and distinguish between EspressoTestActivity
.
7133ace
to
c59c7f2
Compare
This PR does a cleanup of our instrumentation tests by making a distinction between tests that:
Notable changes: