test_spm_package
Run tests for a Swift Package Manager package using swift test from the command line. Avoids launching Xcode, with options for filtering tests and verbose output.
Instructions
Runs tests for a Swift Package Manager package directly using 'swift test' instead of Xcode.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "test_spm_package"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filter | No | Filter to run a subset of tests. Format: 'TestTarget[.TestClass[.testMethod]]'. | |
| verbose | No | Whether to show verbose output (default: false) | |
| parallel | No | Whether to run tests in parallel (default: true) | |
| packagePath | No | Optional path to the directory containing Package.swift. If not provided, uses the active project directory. |