OCMOCk and NewRelic don't work together

Discussion of the OCMock framework. If you have patches we would prefer you to send them to the mailing list, but attaching them to a topic is possible, too.

OCMOCk and NewRelic don't work together

Postby f_vermeulen » 11 Nov 2014, 13:10

I use OCMock for tests and want to use NewRelic but my tests don't want to run now. When i uncomment the import for NewRelic in the App-Prefix.pch file, then all tests are fine.

Has anyone the same problem?

Does anyone know how to uncomment it in the pch-file only in testMode?

This don't work in pch-file
#define Tests [[[[NSProcessInfo processInfo] environment][@"XCInjectBundle"] pathExtension] isEqualToString:@"xctest"]
f_vermeulen
 

Re: OCMOCk and NewRelic don't work together

Postby erik » 11 Nov 2014, 18:56

When you say the tests "don't want to run", what exactly happens? What's the problem? Do you get error messages?
erik
 
Posts: 90
Joined: 10 Oct 2009, 15:22
Location: Hamburg, Germany

Re: OCMOCk and NewRelic don't work together

Postby f_vermeulen » 12 Nov 2014, 09:52

A few tests will run, but on a few the test doesn't end or it ends with a crash in the OCMock-Library.
The failures were different. I can look for them later.
f_vermeulen
 


Return to OCMock



cron