This forum is for KIF specific questions. We'll often help fellow Kiffers when we can because we want you to have a good KIF experience, learn and eventually contribute... However, it seems that your question is not KIF specific but can't really tell based on how you asked.
Are you looking to compile something conditionally?
like this:
#if defined(MY_DEFINED_THING)
//compile this line in.
#warning "this section is compiled in"
#else
//compile this line instead
#warning "The else is being compiled in"
#end
Then in XCode, in the target that builds the class that contains the conditionally compiled code, in the target's build settings, find the preprocessor macros statements and add MY_DEFINED_THING=1
You can name MY_DEFINED_THING as whatever you want that makes sense.
The #warning statements will show up with a yellow caution in the section that's being compiled in. This way you can visually know what XCode thinks you want to have compiled in.
Note: This is something that you'd usually see in the code for the app under test, Not the test code itself.
If this does not help, set your question up with a bit more context. The better quality the question, the better quality the answer.
Regards,
Mike
-----Original Message-----
From: automation <
teste...@gmail.com>
To: KIF iOS Automated Testing Framework <
kif-fr...@googlegroups.com>
Sent: Thu, Sep 24, 2015 6:46 pm
Subject: How to enable feature/debug flags in KIF tests
Hi,
is there a way to enable debug/feature flags before running tests?
For example the following...how would I enable a particular flag
"NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];"
Thanks
--
You received this message because you are subscribed to the Google Groups "KIF iOS Automated Testing Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
kif-framewor...@googlegroups.com.
For more options, visit
https://groups.google.com/d/optout.