What’s new in xcuitests?

Asked on 2025-06-24

1 search

In the WWDC 2025 session titled "What’s new in Xcode," several enhancements to XCUITests were introduced. These include:

  1. Enhanced UI Automation Recording: Xcode now features a completely new code generation system for UI Automation Recording, making it easier to implement UI tests. You can start a recording session directly from the editor, and Xcode will generate the test code based on your interactions with the app.

  2. Automation Explorer: This tool provides a full video recording of your test, allowing you to replay the test and inspect elements after the fact. It helps in identifying issues by showing attributes of every identifiable element during the test.

  3. XCT Hitch Metric: A new metric in the Measure API that helps catch hitches in your app during testing. It reports metrics like Hitch time ratio, which represents the total time your app was hitching during the test.

  4. Runtime API Checks: Xcode now includes more runtime API checks in the Test Plan Configuration Editor. These checks can surface framework runtime issues and threading problems, enhancing the reliability of your tests.

For more detailed information, you can refer to the What’s new in Xcode session.