adil-hussain-84 / EarlGrey2-SwiftUI-Experiment

An Xcode project which uses EarlGrey 2 to test a SwiftUI application.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About

This Xcode project experiments with using EarlGrey 2 to test a SwiftUI application. It has been built by following the EarlGrey 2 setup guide. It adds EarlGrey 2 to an iOS UI Testing Bundle.

The main takeaway from this project for now is that it's not possible to perform text assertions on views defined by means of SwiftUI's Text view. I have reported an issue about this in the EarlGrey 2 repository here.

Setup

This project assumes that the EarlGrey folder which contains the EarlGrey.xcodeproj file exists at the same level as the folder which contains this project's EarlGrey2Experiment.xcodeproj file. So if the EarlGrey2Experiment.xcodeproj file is located in the Repositories/EarlGrey2Experiment folder, for example, then the EarlGrey.xcodeproj file is to be located in the Repositories/EarlGrey folder.

About

An Xcode project which uses EarlGrey 2 to test a SwiftUI application.


Languages

Language:Swift 67.3%Language:Objective-C 32.7%