TestCheck
includes a simple method to check wheter your on testing mode or not.
import TestCheck
if TestCheck.isTesting {
// Do something
}
TestCheck is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'TestCheck'
TestCheck is available under the MIT license. See the LICENSE file for more info.
Elvis Nuñez, @3lvis