Skip to content

thecb4/swift-code-coverage

Repository files navigation

Swift Code Coverage

Swift Code Coverage is a Swift library, executable, and package plugin that reviews the code coverage file that is created during testing.

Installation

You can use mint to install the executable or use it as a package command plugin

Mint

Use Mint

mint install thecb4/swift-code-coverage

Swift Package Plugin

Install as a dependency in your swift package

.package(url: "https://github.com/apple/swift-system", from: "1.0.0")

Usage

swift-code-coverage coverage.json --threshold 20

The output will look like

Coverage Report (llvm.coverage.json.export v2.0.1)
================================================

Target Coverage Summary:
-----------------------
Lines:      24.2%
Functions:  25.8%
Branches:    0.0%

✅ Coverage meets threshold

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages