Skip to main content

Overview

The search-test tool looks up a test by part of its name, class, or file. It searches the repository’s tests and, if your organization uses test collections, the repository’s tests in every collection. Return Type: Metadata about each matching test, including its ID and status. Results from test collections are listed in their own section, with the test’s ID, its Collection ID, and whether it is quarantined.

Parameters

Required Parameters

Optional Parameters

Which tests are searched

What the tool searches follows your organization’s migration to test collections, and matches what the Trunk app shows you: Passing testCollectionShortId searches only that collection.

Getting Parameter Values

If your AI assistant doesn’t have direct access to Git information, use these commands: Get repository name:
Look for the repository name in the output (e.g., trunk-io/trunk from git@github.com:trunk-io/trunk.git)

Usage Examples

Search one test collection

Error Handling