Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing Coverage Data for Swift Packages #201

Open
ravitripathi opened this issue Mar 12, 2022 · 1 comment
Open

Parsing Coverage Data for Swift Packages #201

ravitripathi opened this issue Mar 12, 2022 · 1 comment

Comments

@ravitripathi
Copy link

ravitripathi commented Mar 12, 2022

Background

Swift Package Manager uses a new format to generate coverage data for code. Instead of an xccoverage file, a json is generated by SPM containing the coverage data. For an existing swift package, run

swift test --enable-code-coverage

This would generate a <Your_Package_Name>.json file in .build/debug/codecov directory.

https://github.com/mattpolzin/swift-test-codecov uses this json to parse coverage details, and print coverage data on console. Can a similar approach be used by xcov to parse coverage data for Swift Packages?

@ravitripathi
Copy link
Author

@joshdholtz Created this issue after your suggestion on my tweet 🙏🏽

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant