Skip to main content
Glama

XcodeBuildMCP

swift_package_test

Run tests for Swift packages using specified configurations, filters, and parallel execution, with optional code coverage and @main support via XcodeBuildMCP.

Instructions

Runs tests for a Swift Package with swift test

Input Schema

NameRequiredDescriptionDefault
configurationNoSwift package configuration (debug, release)
filterNoFilter tests by name (regex pattern)
packagePathYesPath to the Swift package root (Required)
parallelNoRun tests in parallel (default: true)
parseAsLibraryNoAdd -parse-as-library flag for @main support (default: false)
showCodecovNoShow code coverage (default: false)
testProductNoOptional specific test product to run

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "configuration": { "description": "Swift package configuration (debug, release)", "enum": [ "debug", "release" ], "type": "string" }, "filter": { "description": "Filter tests by name (regex pattern)", "type": "string" }, "packagePath": { "description": "Path to the Swift package root (Required)", "type": "string" }, "parallel": { "description": "Run tests in parallel (default: true)", "type": "boolean" }, "parseAsLibrary": { "description": "Add -parse-as-library flag for @main support (default: false)", "type": "boolean" }, "showCodecov": { "description": "Show code coverage (default: false)", "type": "boolean" }, "testProduct": { "description": "Optional specific test product to run", "type": "string" } }, "required": [ "packagePath" ], "type": "object" }
Install Server

Other Tools from XcodeBuildMCP

Related Tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cameroncooke/XcodeBuildMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server