diff options
author | Julian Rex <julian.rex@gmail.com> | 2018-09-25 13:31:47 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-25 13:31:47 -0400 |
commit | 66e95ac2ab6260654ba09b26e83591e3d4334c02 (patch) | |
tree | 784f736a003f26a04696f58a0b91bf93221f9c55 /platform/ios/Integration Tests/MGLMapViewIntegrationTest.m | |
parent | 125c628981bcc38a87498bf5f6c72e2c506dd99f (diff) | |
download | qtlocation-mapboxgl-66e95ac2ab6260654ba09b26e83591e3d4334c02.tar.gz |
[ios] Move pending test check into `invokeTest` (#12964)
Diffstat (limited to 'platform/ios/Integration Tests/MGLMapViewIntegrationTest.m')
-rw-r--r-- | platform/ios/Integration Tests/MGLMapViewIntegrationTest.m | 15 |
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) { |