Is it possible to have a macro defined in (testing) target settings or in the testing .pch file such that it's passed to the entire app?
Or is there any macro already available to check (from code) if we're running a test?
e.g.:
#if TEST=1
// do something
#else
// do something else
#endif
The reason that I want this is to skip some code, asserts etc. during testing (without having to change a #define in the main app .pch each time I run tests).
Thanks.