# swiftlang/swift-corelibs-xctest

The XCTest Project, A Swift core library for providing unit test support

Repository: https://github.com/swiftlang/swift-corelibs-xctest
Canonical: https://ross.abutalabs.com/products/swift-corelibs-xctest
Language: Swift
License: Apache-2.0
License Family: permissive
Last push: 2026-08-25T07:35:58+00:00

## Health v2 (maintenance only)
Score: 74/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 28, longevity 100
- inputs: {"age_days": 3950, "days_push": 8, "days_rel": 466, "gap_med": 80.5, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1189, forks 276 (observed 2026-08-28T04:03:55.845781+00:00)

## What it is
The open-source Swift core library providing the XCTest unit testing framework for Swift packages and applications across all platforms Swift supports. It implements the XCTest APIs from Xcode 7+ and integrates with Swift Package Manager via `swift test`.

## Use cases
- write unit tests for swift packages
- run swift tests on linux
- cross-platform testing for swift code
- use xctest outside of xcode
- run a single test method from the command line
- list available tests as json

## When to choose
- you are developing a SwiftPM package and want `swift test` support
- you need to run XCTest-based tests on Linux or other non-Apple platforms
- you want a common unit testing API across all Swift-supported platforms

## When to avoid
- you only develop for Apple platforms and can use the Xcode-bundled XCTest directly
- you need UI or integration testing rather than unit testing
- you need testing APIs newer than the Xcode 7 era subset implemented here

## Facets
- artifact type: library
- maturity: active
- function: testing
- domain: testing, developer-tools, programming-languages
- platform: cross-platform, cli
- tags: xctest, unit-testing, swift, swift-package-manager, test-runner, linux, macos

## Member repositories
- swiftlang/swift-corelibs-xctest (main) score 74

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:55.845781+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:23:21.245669+00:00, confidence not recorded.
  - readme: https://github.com/swiftlang/swift-corelibs-xctest (fetched 2026-08-28T04:03:55.845781+00:00, sha 9a914f63cf35)
- Data as of 2026-08-30T08:39:29.467469+00:00.
