ReplayTests.swift 540 B

1234567891011121314151617
  1. import Foundation
  2. /// Flag to enable replay tests.
  3. ///
  4. /// These test are only used for debugging so normally they should be disabled. But
  5. /// if you're debugging the oref-swift functions they are extremely useful. To enable them
  6. /// add these lines to your ConfigOverride.xcconfig file:
  7. /// ```
  8. /// ENABLE_REPLAY_TESTS = YES
  9. /// ```
  10. enum ReplayTests {
  11. static var enabled: Bool {
  12. let bundle = Bundle(for: BundleReference.self)
  13. return bundle.object(forInfoDictionaryKey: "EnableReplayTests") as? String == "YES"
  14. }
  15. }