Skip to content

Commit

Permalink
Fix running of tests that use OCMock
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ob committed Apr 11, 2017
1 parent eaf82b0 commit 3957f48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Bluepill-cli/Bluepill-cli/Simulator/SimulatorHelper.m
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ + (NSString *)testEnvironmentWithConfiguration:(BPConfiguration *)config {
xctConfig.testBundleURL = [NSURL fileURLWithPath:testBundlePath];
xctConfig.sessionIdentifier = config.sessionIdentifier;
xctConfig.treatMissingBaselinesAsFailures = NO;
xctConfig.targetApplicationBundleID = [self bundleIdForPath:config.appBundlePath];//@"LI.BPSampleApp";
xctConfig.targetApplicationPath = config.appBundlePath;//@"/Users/khu/linkedin/bluepill/build/Products/Debug-iphonesimulator/BPSampleApp.app";
xctConfig.targetApplicationPath = config.appBundlePath;
xctConfig.reportResultsToIDE = YES;

if (config.testRunnerAppPath) {
xctConfig.targetApplicationBundleID = [self bundleIdForPath:config.appBundlePath];
xctConfig.initializeForUITesting = YES;
xctConfig.disablePerformanceMetrics = NO;
xctConfig.reportActivities = NO;
Expand Down

0 comments on commit 3957f48

Please sign in to comment.