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.
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. |