Skip to main content
Glama

swift_package_test

Execute Swift package tests using swift test, specifying package path, test product, filters, build configuration, parallel execution, code coverage, and @main support.

Instructions

Runs tests for a Swift Package with swift test

Input Schema

NameRequiredDescriptionDefault
configurationNoBuild configuration: 'debug' (default) or '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": "Build configuration: 'debug' (default) or '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" }

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/SampsonKY/XcodeBuildMCP'

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