Skip to content

Commit

Permalink
Update docs and make them more lean
Browse files Browse the repository at this point in the history
  • Loading branch information
tirodkar committed Mar 20, 2017
1 parent 3f5243f commit 87bf9a5
Show file tree
Hide file tree
Showing 2 changed files with 167 additions and 140 deletions.
17 changes: 16 additions & 1 deletion docs/faq.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# FAQ

**I did a fresh `git clone` of the EarlGreyExample CocoaPods Demo project followed by a
`pod install`. However, I get an error similar to `No such module 'EarlGrey'`.**
This is a known issue with EarlGrey's CocoaPods support. EarlGrey requires some additions to the
test project's Build Settings and Schemes. If your **Test Target(s)** do not contain these changes
to the [Scheme](./install-and-run.md#scheme-changes) and
[Build Phases](./install-and-run.md#build-phase-changes) after running `pod install`, please re-run
`pod install` again.'

**How does EarlGrey compare to Xcode’s UI Testing?**

EarlGrey is more of a [gray-box testing](https://en.wikipedia.org/wiki/Gray_box_testing) solution
Expand All @@ -18,9 +26,16 @@ assertions. The ability to search for elements (using search actions) makes test
UI changes. For example, EarlGrey provides APIs that allow searching for elements in scrollable
containers, regardless of the amount of scrolling required.

**Why do tests have the video cropped? How can I get them to fit in the video frame?**
For your tests to have the video properly scaled, make sure the app under test has correct launch
screen images present for all supported devices (see
[iOS Developer Library, Launch Files](https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/LaunchImages.html)).


**I get a crash with “Could not swizzle …”**

This means that EarlGrey is trying to swizzle a method that it has swizzled before. It is a result of EarlGrey being linked to more than once. Ensure that only the **Test Target**
This means that EarlGrey is trying to swizzle a method that it has swizzled before. It is a result
of EarlGrey being linked to more than once. Ensure that only the **Test Target**
depends on *EarlGrey.framework* and EarlGrey.framework is embedded in the app under test (i.e. *$TEST_HOST*) from the
test target's build phase.

Expand Down

0 comments on commit 87bf9a5

Please sign in to comment.