https://github.com/nef10/swift-test-coverage
Command Line Tool to display the test coverage of a swift package
https://github.com/nef10/swift-test-coverage
swift swift-package-manager test-coverage
Last synced: 8 months ago
JSON representation
Command Line Tool to display the test coverage of a swift package
- Host: GitHub
- URL: https://github.com/nef10/swift-test-coverage
- Owner: Nef10
- License: mit
- Created: 2021-09-26T06:10:20.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-20T20:09:22.000Z (over 3 years ago)
- Last Synced: 2025-04-05T15:12:31.096Z (10 months ago)
- Topics: swift, swift-package-manager, test-coverage
- Language: Shell
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# swift-test-coverage
Small Command Line Tool to display the test coverage of a swift package.
## Installation
The tool can be installed via brew: `brew install Nef10/tap/swift-test-coverage`.
## Usage
Just call `swift test-coverage` from a folder within your swift package to see a report with the coverage percentage of the different files.
Call `swift test-coverage show` to aditionally print the coverage of the individual lines or `swift test-coverage export` to export it to an HTML file. The last two options take an optional argument of the relative or absolute filepath to limit printing/exporting the line coverage to this specific file.