Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update documents and added ifaq.md as per the comments
- Loading branch information
Showing
3 changed files
with
228 additions
and
219 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#IFAQ - Infrequently Asked Questions | ||
|
||
**Why does EarlGrey need to modify the test's scheme and add a Copy Files Build Phase?** | ||
|
||
EarlGrey synchronizes by keeping track of the app's internal state. It is essential that EarlGrey | ||
therefore be embedded into the app. Since we do not want users to have EarlGrey directly link to | ||
the app under test or create separate test rigs, we perform the embedding ourselves by adding a | ||
Copy Files Build Phase that copies the *EarlGrey.framework* linked to the test target to the app | ||
under test, as specified by the *$TEST_HOST* variable. | ||
|
||
Also, EarlGrey needs to be loaded before the app to ensure that we do not miss any states that | ||
should have been tracked, along with giving EarlGrey fine-grained control of the test's execution. | ||
For this purpose, we add a *DYLD_INSERT_LIBRARIES* environment variable in the test's scheme. |
Oops, something went wrong.