Official Buildkite Test Analytics collector for Swift test frameworks ✨
⚒ Supported test frameworks: XCTest, and more coming soon.
📦 Supported CI systems: Buildkite, GitHub Actions, CircleCI, and others via the
BUILDKITE_ANALYTICS_* environment variables.
Create a test suite, and copy the API token that it gives you.
To use the Buildkite Test Collector with a SwiftPM project, add this repository to the
Package.swift manifest and add
BuildkiteTestCollector to any test target requiring analytics:
let package = Package( name: "MyProject", dependencies: [ .package(url: "https://github.com/buildkite/test-collector-swift", from: "0.1.1") ], targets: [ .target(name: "MyProject"), .testTarget( name: "MyProjectTests", dependencies: [ "MyProject", .product(name: "BuildkiteTestCollector", package: "test-collector-swift") ] ) ] )
BUILDKITE_ANALYTICS_TOKEN secret on your CI to the API token from earlier.
Push your changes to a branch, and open a pull request. After a test run has been triggered, results will start appearing in your analytics dashboard.
git checkout -b add-buildkite-test-analytics git commit -am "Add Buildkite Test Analytics" git push origin add-buildkite-test-analytics
To enable debugging output, set the
BUILDKITE_ANALYTICS_DEBUG_ENABLED environment variable to
See the GitHub 'enhancement' issues for planned features. Pull requests are always welcome, and we’ll give you feedback and guidance if you choose to contribute 💚
Bug reports and pull requests are welcome on GitHub at https://github.com/buildkite/test-collector-swift
The package is available as open source under the terms of the MIT License.
|Last commit: 1 week ago|