List XCTest Bundles
idb-xctest-listInspect which xctest bundles are installed on a simulator, or list the tests inside a specific bundle. Provides clear output to confirm installs before running tests via idb.
Instructions
idb-xctest-list
List xctest bundles installed on a target, or the tests inside one.
Overview
This is NOT a replacement for xcodebuild-test. It does not build anything: it inspects test
bundles that are already installed on the simulator (put there by idb install of a
.xctest bundle, typically produced by xcodebuild build-for-testing).
Use it to discover what is installed before running tests through idb, or to confirm an install
succeeded. If you just want to run a project's tests, use xcodebuild-test.
Parameters
Optional
udid (string): Target identifier - auto-detects if omitted
testBundleId (string): List the tests inside this bundle instead of listing bundles
Returns
bundles (or tests when testBundleId is given) plus a count. An empty list is normal and means
no test bundle is installed — it is not an error.
Examples
What test bundles are installed?
await idbXctestListTool({});What tests are in one bundle?
await idbXctestListTool({ testBundleId: 'com.example.MyAppUITests.xctrunner' });Related Tools
xcodebuild-test: Build and run a project's tests — the usual choice
idb-install: Install a .xctest bundle so it appears here
idb-list-apps: List regular apps rather than test bundles
Notes
Output parsing is deliberately tolerant: idb has emitted both JSON and plain lines across versions, so both are handled and unrecognised lines are preserved as raw text.
An empty result on a simulator with no installed test bundle is expected.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| udid | No | ||
| testBundleId | No | List the tests inside this bundle instead of listing installed bundles |