Skip to content

Commit 3957f48

Browse files
committed
Fix running of tests that use OCMock
This is a bit of a hack but it fixes a problem where if a test (layout) uses OCMock, the mocks won't be fired. I have a hypothesis that some framework that's loaded before the OCMock framework is interfering with it, but as for why this fixes it... I can only guess.
1 parent eaf82b0 commit 3957f48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Bluepill-cli/Bluepill-cli/Simulator/SimulatorHelper.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,11 @@ + (NSString *)testEnvironmentWithConfiguration:(BPConfiguration *)config {
103103
xctConfig.testBundleURL = [NSURL fileURLWithPath:testBundlePath];
104104
xctConfig.sessionIdentifier = config.sessionIdentifier;
105105
xctConfig.treatMissingBaselinesAsFailures = NO;
106-
xctConfig.targetApplicationBundleID = [self bundleIdForPath:config.appBundlePath];//@"LI.BPSampleApp";
107-
xctConfig.targetApplicationPath = config.appBundlePath;//@"/Users/khu/linkedin/bluepill/build/Products/Debug-iphonesimulator/BPSampleApp.app";
106+
xctConfig.targetApplicationPath = config.appBundlePath;
108107
xctConfig.reportResultsToIDE = YES;
109108

110109
if (config.testRunnerAppPath) {
110+
xctConfig.targetApplicationBundleID = [self bundleIdForPath:config.appBundlePath];
111111
xctConfig.initializeForUITesting = YES;
112112
xctConfig.disablePerformanceMetrics = NO;
113113
xctConfig.reportActivities = NO;

0 commit comments

Comments
 (0)