google / google/EarlGrey

Default example test crashes

Open
#1,890 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Objective-C
Stars
5.7k
Forks
737
Avg merge
1d 20h
Merged PRs (30d)
5

Description

Following the docs with the basic setup and sample test:

`class MyFirstEarlGreyTest: XCTestCase {

func testExample() {
let application: XCUIApplication = XCUIApplication()
application.launch()
EarlGrey.setHostApplicationCrashHandler(GREYHostApplicationCrashHandler?)
}
}`

crashes after opening and closing the app a couple of times with:

Host background port not assigned. Application under test may have failed to launch and/or does not link to EarlGrey's AppFramework.

What am I missing.. I linked the AppFramework

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the documented basic setup and sample test, then verify that the application under test links the EarlGrey AppFramework. The issue is resolved when repeated app launches no longer produce the host background port error.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, objective-c, swift
Domain
mobile, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.