EarlGrey alternatives and similar libraries
Based on the "UI Testing" category.
Alternatively, view EarlGrey alternatives based on common mentions on social networks and blogs.
9.2 9.9 L1 EarlGrey VS CucumberA monorepo of common components - building blocks for implementing Cucumber in various languages.
8.9 5.0 L2 EarlGrey VS BluepillBluepill is a reliable iOS testing tool that runs UI tests using multiple simulators on a single machine
8.2 1.6 L5 EarlGrey VS SwiftMonkeyA framework for doing randomised UI testing of iOS apps
6.4 0.0 L5 EarlGrey VS ios-driverSelenium server to test native, hybrid and web apps on IOS. Join us on IRC #ios-driver on freenode
5.7 0.0 L5 EarlGrey VS LayoutTest-iOSWrite unit tests which test the layout of a view in multiple configurations
4.3 0.0 EarlGrey VS AutoMateSwift framework containing a set of helpful XCTest extensions for writing UI automation tests
Testing the UI without UI Testing, a Swift experiment.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of EarlGrey or a related project?
Deprecation: EarlGrey 1.0 is deprecated in favor of EarlGrey 2.0 which integrates it with XCUITest. Please look at the earlgrey2 branch. EarlGrey 1.0 is not being maintained internally with iOS 13.
For EarlGrey 2, please go to earlgrey2 branch.
EarlGrey is a native iOS UI automation test framework that enables you to write clear, concise tests.
With the EarlGrey framework, you have access to enhanced synchronization features. EarlGrey automatically synchronizes with the UI, network requests, and various queues; but still allows you to manually implement customized timings, if needed.
EarlGrey’s synchronization features help to ensure that the UI is in a steady state before actions are performed. This greatly increases test stability and makes tests highly repeatable.
EarlGrey works in conjunction with the XCTest framework and integrates with Xcode’s Test Navigator so you can run tests directly from Xcode or the command line (using xcodebuild).
The EarlGrey documentation for users is located in the EarlGrey/docs folder. To get started, review the EarlGrey features, check for backward compatibility, and then install/run EarlGrey with your test target. After everything is configured, take a look at the EarlGrey API and start writing your own tests.
If you need help, several resources are available. First check the FAQ. If you have more questions after reading the FAQ, see Known Issues. You can bring more specific issues to our attention by asking them on stackoverflow.com using the #earlgrey tag. You can also start new discussions with us on our Google group or request to join our slack channel.
- FAQ - Frequently Asked Questions
- IFAQ - Infrequently Asked Questions
- Known Issues
- Stack Overflow
- Google Group
To prioritize and improve EarlGrey, the framework collects usage data and
uploads it to Google Analytics. More specifically, the framework collects the
MD5 hash of Bundle ID, Test Class Names and Test Method Names. This
information allows us to measure the volume of usage. For more detailed
information about our analytics collection, please peruse the
file which contains the implementation details. If they wish, users can choose
to opt out by disabling the Analytics config setting in their test’s
- (void)setUp method:
// Disable analytics. [[GREYConfiguration sharedInstance] setValue:@(NO) forConfigKey:kGREYConfigKeyAnalyticsEnabled];
// Disable analytics. GREYConfiguration.sharedInstance().setValue(false, forConfigKey: kGREYConfigKeyAnalyticsEnabled)
Please make sure you’ve followed the guidelines in CONTRIBUTING.md before making any contributions.
Setup an EarlGrey Project
Clone the EarlGrey repository from GitHub:
git clone https://github.com/google/EarlGrey.git
After you have cloned the EarlGrey repository, download all the dependencies using setup-earlgrey.sh.
After the script completes successfully, open
EarlGrey.xcodeprojand ensure that all the targets build.
You can now use
EarlGrey.xcodeprojto make changes to the framework.
Add and Run Tests
To add unit tests for EarlGrey, use
UnitTests.xcodeproj located at
Tests/UnitTests. To run all unit tests, select the UnitTests Scheme and press Cmd+U.
To add functional tests for EarlGrey, use the
Tests/FunctionalTests. To run all functional tests, select the FunctionalTests Scheme and press Cmd+U.
*Note that all licence references and agreements mentioned in the EarlGrey README section above are relevant to that project's source code only.