summaryrefslogtreecommitdiff
path: root/platform/ios/Integration Tests/MGLMapViewIntegrationTest.m
diff options
context:
space:
mode:
Diffstat (limited to 'platform/ios/Integration Tests/MGLMapViewIntegrationTest.m')
-rw-r--r--platform/ios/Integration Tests/MGLMapViewIntegrationTest.m15
1 files changed, 15 insertions, 0 deletions
diff --git a/platform/ios/Integration Tests/MGLMapViewIntegrationTest.m b/platform/ios/Integration Tests/MGLMapViewIntegrationTest.m
index 8235945676..c427a7842f 100644
--- a/platform/ios/Integration Tests/MGLMapViewIntegrationTest.m
+++ b/platform/ios/Integration Tests/MGLMapViewIntegrationTest.m
@@ -6,6 +6,21 @@
@implementation MGLMapViewIntegrationTest
+- (void)invokeTest {
+ NSString *selector = NSStringFromSelector(self.invocation.selector);
+ BOOL isPendingTest = [selector hasSuffix:@"PENDING"];
+
+ if (isPendingTest) {
+ NSString *runPendingTests = [[NSProcessInfo processInfo] environment][@"MAPBOX_RUN_PENDING_TESTS"];
+ if (![runPendingTests boolValue]) {
+ printf("warning: '%s' is a pending test - skipping\n", selector.UTF8String);
+ return;
+ }
+ }
+
+ [super invokeTest];
+}
+
- (NSString*)validAccessToken {
NSString *accessToken = [[NSProcessInfo processInfo] environment][@"MAPBOX_ACCESS_TOKEN"];
if (!accessToken) {