Commit f17b23d
committed
Swift Test: Add HTML coverage report
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 a response file for configuring the `llvm-cov show` command.
The response file is accessible from the Swift Package project.1 parent f8451c1 commit f17b23d
File tree
10 files changed
+1600
-115
lines changed- .swiftpm/configuration
- Sources
- Commands
- Utilities
- Workspace
- _InternalTestSupport
- Tests/CommandsTests
10 files changed
+1600
-115
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1108 | 1108 | | |
1109 | 1109 | | |
1110 | 1110 | | |
1111 | | - | |
| 1111 | + | |
1112 | 1112 | | |
1113 | 1113 | | |
1114 | 1114 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
80 | | - | |
81 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
82 | 88 | | |
83 | 89 | | |
84 | 90 | | |
| |||
0 commit comments