Skip to content
This repository has been archived by the owner on Jul 23, 2022. It is now read-only.

Commit

Permalink
add earlgrey
Browse files Browse the repository at this point in the history
  • Loading branch information
KazuCocoa committed Sep 26, 2017
1 parent cd3ec48 commit aa52722
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
</Testables>
<EnvironmentVariables>
<EnvironmentVariable
key = "DYLD_INSERT_LIBRARIES"
value = "@executable_path/EarlGrey.framework/EarlGrey"
key = "EarlGrey"
value = "true"
isEnabled = "YES">
</EnvironmentVariable>
</EnvironmentVariables>
Expand Down
3 changes: 3 additions & 0 deletions test.examplesEarlGreyTests/test_examplesEarlGreyTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ class test_examplesEarlGreyTests: XCTestCase {

print(ProcessInfo.processInfo.environment)
XCTAssert(ProcessInfo.processInfo.environment["XCTestConfigurationFilePath"] != nil)

// add "EarlGrey" = "true" as environment variables for Test scheme
XCTAssert(ProcessInfo.processInfo.environment["EarlGrey"] == "true")
}

// https://github.com/google/EarlGrey/blob/master/Demo/EarlGreyExample/EarlGreyExampleSwiftTests/EarlGreyExampleSwiftTests.swift
Expand Down

0 comments on commit aa52722

Please sign in to comment.