SE-0501: HTML coverage report - #9076
Conversation
e5b2559 to
8761ac3
Compare
d184ab9 to
be05442
Compare
0f83da6 to
235517a
Compare
74feb40 to
f17b23d
Compare
f17b23d to
89f8663
Compare
b0d20ee to
e541cfe
Compare
f31c064 to
5b5935a
Compare
5b5935a to
5c884e0
Compare
65b5ef5 to
c0a054d
Compare
|
This PR is blocked on a Swift Argument Parser release which contains apple/swift-argument-parser#830 |
Update Swift Argument Parser to use release 1.8.1 to support SE-0501: HTML Coverage report Relates to: swiftlang/swift-package-manager#9076
Update Swift Argument Parser to use release 1.8.1 to support SE-0501: HTML Coverage report Relates to: swiftlang/swift-package-manager#9076 (cherry picked from commit a914523)
Update Swift Argument Parser to use release 1.8.1 to support SE-0501: HTML Coverage report Relates to: swiftlang/swift-package-manager#9076 (cherry picked from commit a914523)
c0a054d to
aac2de3
Compare
aac2de3 to
b059f6e
Compare
Update Swift Argument Parser to use release 1.8.1 to support SE-0501: HTML Coverage report Relates to: swiftlang/swift-package-manager#9076
Update Swift Argument Parser to use release 1.8.1 to support SE-0501: HTML Coverage report Relates to: swiftlang/swift-package-manager#9076 (cherry picked from commit a914523)
Update Swift Argument Parser to use release 1.8.1 to support SE-0501: HTML Coverage report Relates to: swiftlang/swift-package-manager#9076 (cherry picked from commit 9529cf5)
Update Swift Argument Parser to use release 1.8.1 to support SE-0501: HTML Coverage report Relates to: swiftlang/swift-package-manager#9076
Update Swift Argument Parser to use release 1.8.1 to support SE-0501: HTML Coverage report Relates to: swiftlang/swift-package-manager#9076 (cherry picked from commit a3e8cdf)
Update Swift Argument Parser to use release 1.8.2 to support SE-0501: HTML Coverage report Relates to: swiftlang/swift-package-manager#9076
Update Swift Argument Parser to use release 1.8.2 to support SE-0501: HTML Coverage report Relates to: swiftlang/swift-package-manager#9076 (cherry picked from commit 241fcbb)
Update Swift Argument Parser to use release 1.8.2 to support SE-0501: HTML Coverage report Relates to: swiftlang/swift-package-manager#9076
Update Swift Argument Parser to use release 1.8.2 for `main`, `rebranch` and `next` to support SE-0501: HTML Coverage report, and another proposal, allow for deprecating package products, which is currently in a pitch [1]. Relates to: swiftlang/swift-package-manager#9076 [1]: https://forums.swift.org/t/pitch-deprecating-package-products-in-the-package-manifest/88468/
|
@bkhouri What is the latest on this? The evolution has been accepted but the implementation is still pending |
b059f6e to
a415f45
Compare
@FranzBusch : This change required a feature in Swift Argument Parser 1.8.1, but that version requires being build with Swift 6.0. Building the toolchain on linux currently failed as the base version in the images uses Swift 5.x. So this PR is currently blocked on swiftlang/swift#89403. We need @shahmishal to update the Swift version used in the docker images used to build the Linux toolchain. |
The Docker images were updated for |
a415f45 to
40e464d
Compare
Currently, `swift test` supports generating a JSON coverage report, which is great for ingesting into various systems. The JSON coverage report generation is processed by `llvm-cov`` where SwiftPM is simply orchestrating the command line invocation. The JSON, however, is not very "human consumable friendly" while iterating at-desk. This change adds an additional command line argument to swift test that allows specify whether to generate a JSON or HTML report. Selecting HTML will produce a `llvm-cov`` HTML report, that is more easily consumable by a developer at desk. Similar to the JSON coverage report, Swift Package Manager is only responsible for constructing the command line argument that will be passed to `llvm-cov``, which will produce the HTML report. Since `llvm-cov show` (which would produce the HTML) has numerous CLI arguments that allows configurations of the HTML report, this change supports `-Xcov` argument for specifying additional coverage report arguments.
40e464d to
de046a6
Compare
|
@swift-ci test |
|
@swift-ci test windows |
Currently,
swift testsupports generating a JSON coverage report, which is great for ingesting into various systems. The JSON coverage report generation is processed byllvm-covwhere SwiftPM is simply orchestrating the command line invocation. The JSON, however, is not very "human consumable friendly" while iterating at-desk.This change adds an additional command line argument to swift test that allows specify whether to generate a JSON or HTML report. Selecting HTML will produce a
llvm-covHTML report, that is more easily consumable by a developer at desk. Similar to the JSON coverage report, Swift Package Manager is only responsible for constructing the command line argument that will be passed tollvm-cov, which will produce the HTML report.Since
llvm-cov show(which would produce the HTML) has numerous CLI arguments that allows configurations of the HTML report, this change supports-Xcovargument for specifying additional coverage report arguments.See SE-0501: HTML Coverage Report and an update to the proposal
TODO:
-Xcovarguments to the JSON and HTML reportDepends on: apple/swift-argument-parser#830
Depends on: #9162
Depends on: #10146
Depends on: #10400
Depends on: swiftlang/swift#89403