Developers

Google Gives iOS Devs Open Source EarlGrey Testing Tool

open source

Google last week introduced EarlGrey, a functional user interface testing framework for Apple iOS apps.

YouTube, Google Calendar, Google Photos, Google Translate and Google Play Music have successfully adopted the framework, the company said.

According to Google’s Siddartha Janga, EarlGrey has been open-sourced under the Apache license. The company has provided app developers with a start guide and the ability to add EarlGrey to their projects using CocoaPods or manually to Xcode project files.

Releasing EarlGrey as open source is a positive move that follows considerable efforts by Google in various open source communities, said Charles King, principal analyst at Pund-IT.

“It simplifies iOS development tasks. Overall, it should be a welcome addition to iOS developers’ toolboxes,” he told LinuxInsider.

What It Does

One of the main advantages of EarlGrey is its synchronization ability, noted Google’s Janga. The tests automatically wait for animations, network requests, and other events before interacting with the UI. That makes it easier for app developers to write tests without sleep or wait states and to maintain a procedural description of test steps.

Two other factors — visibility checking and design flexibility — enhance the testing process on the iOS platform.

Visibility checking during tests takes into account the user experience with an app. It ensures, for example, that attempting to tap a button hidden behind an image will flag an immediate failure, Janga said.

Design components involving element selection, interaction, assertion, and synchronization take future growth into consideration.

“Apple is not known for its development tools, so this should make it easier for them to develop iOS apps,” said Rob Enderle, principal analyst at the Enderle Group.

“However, over time, they will be more and more dependent on Alphabet, and Android has not proven as lucrative as iOS has, so strategically, flipping to Alphabet’s tools could be ill advised,” he told LinuxInsider.

Strategic Move

Open-sourcing any technology tends to accelerate product improvements and find potential problems, noted King. Doing so with EarlGrey will allow Google developers to focus on other critical tasks.

“It also somewhat enhances Google’s position in open source by showing that the company can and does play nice with Apple-related technologies,” he said.

Google’s move is a throwback to how Microsoft got a grip on software developers early in its growth, according to Enderle. It’s “a very Microsoft-like play” and the kind of thing it did in the 1980s and early 1990s in going after developers.

“If you can own them, you can take control of the platform,” he said. “Google gets broader adoption and begins to erode Apple’s control over iOS. Both are strategic initiatives for Google.”

Jack M. Germain

Jack M. Germain has been an ECT News Network reporter since 2003. His main areas of focus are enterprise IT, Linux and open-source technologies. He is an esteemed reviewer of Linux distros and other open-source software. In addition, Jack extensively covers business technology and privacy issues, as well as developments in e-commerce and consumer electronics. Email Jack.

1 Comment

  • Although I am new to the mobile app development world, I think this is a very smart move on Google’s part. It makes good business sense and will be a win-win for both Google and iOS developers. Ultimately, the end user will benefit. I prefer the Android platform as an end-user but see the wisdom in Google going open-source for iOS.

Leave a Comment

Please sign in to post or reply to a comment. New users create a free account.

More by Jack M. Germain
More in Developers

LinuxInsider Channels