google/EarlGrey
google/EarlGrey has 5,700 GitHub stars and 736 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-06 02:18 UTC. Last push 2026-10-29.
:tea: iOS 用户界面自动化测试框架
实测星标增长
- 24小时
- 0
- 7天
- 更新延迟
- 15天
- 更新延迟
- 1个月
- 更新延迟
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文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.
EarlGrey
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).
Getting Started
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.
Getting Help
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
- Slack
- Google Group
Analytics
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
GREYAnalytics.m
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:
In Objective-C:
// Disable analytics.
[[GREYConfiguration sharedInstance] setValue:@(NO) forConfigKey:kGREYConfigKeyAnalyticsEnabled];
In Swift:
// Disable analytics.
GREYConfiguration.sharedInstance().setValue(false, forConfigKey: kGREYConfigKeyAnalyticsEnabled)
For Contributors
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
Unit 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.
Functional Tests
To add functional tests for EarlGrey, use the FunctionalTests.xcodeproj located
at Tests/FunctionalTests. To run all functional tests, select the FunctionalTests Scheme and press Cmd+U.
探索相关项目
n8n-io/n8n
具备原生 AI 能力的 Fair-code 工作流自动化平台。可将可视化构建与自定义代码相结合,支持自行部署或使用云服务,并提供 400 多种集成。
209,714 星标langgenius/dify
在同一个协作工作区中构建智能体工作流和 RAG 流水线,并提供丰富的 AI 模型与工具支持。可部署到云端、VPC 或自行部署,团队无需重建技术栈即可从原型进入生产。
160,568 星标microsoft/PowerToys
Microsoft PowerToys 是一组提升 Windows 生产力和自定义能力的实用工具
140,628 星标stablyai/orca
Orca 是使用智能体集群开展工作的地方(例如 Grok Bot、Claude Code)。可使用你自己的订阅运行任意编程智能体。支持桌面端、移动端和远程运行时。
117,816 星标