forked from Juanpe/SkeletonView
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
not replace original datasource is running XCTests
- Loading branch information
Juanpe Catalán
committed
Feb 20, 2020
1 parent
ba889f6
commit 64cf3b0
Showing
3 changed files
with
25 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Copyright © 2020 SkeletonView. All rights reserved. | ||
|
||
import Foundation | ||
|
||
extension ProcessInfo { | ||
enum Constants { | ||
static let testConfigurationFilePathKey = "XCTestConfigurationFilePath" | ||
} | ||
|
||
static var isRunningXCTest: Bool { | ||
return processInfo.environment[Constants.testConfigurationFilePathKey] != nil | ||
} | ||
} |