Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .swiftpm/configuration/coverage.html.report.args.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
--tab-size=10
--coverage-watermark=80,20
--enable-vtable-value-profiling
--show-branch-summary
--show-region-summary
--show-branches=percent
--show-mcdc-summary
--show-expansions
--show-instantiations
--show-regions
--show-directory-coverage
--show-line-counts
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1108,7 +1108,7 @@ if ProcessInfo.processInfo.environment["SWIFTCI_USE_LOCAL_DEPS"] == nil {
// utils/update_checkout/update-checkout-config.json
// They are used to build the official swift toolchain.
.package(url: "https://github.com/swiftlang/swift-syntax.git", branch: relatedDependenciesBranch),
.package(url: "https://github.com/apple/swift-argument-parser.git", revision: "1.5.1"),
.package(url: "https://github.com/apple/swift-argument-parser.git", revision: "1.6.1"),
.package(url: "https://github.com/apple/swift-crypto.git", revision: "3.12.5"),
.package(url: "https://github.com/apple/swift-system.git", revision: "1.5.0"),
.package(url: "https://github.com/apple/swift-collections.git", revision: "1.1.6"),
Expand Down
12 changes: 9 additions & 3 deletions Sources/Commands/SwiftBuildCommand.swift
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,15 @@ struct BuildCommandOptions: ParsableArguments {
var buildTests: Bool = false

/// Whether to enable code coverage.
@Flag(name: .customLong("code-coverage"),
inversion: .prefixedEnableDisable,
help: "Enable code coverage.")
@Flag(
name: [
.customLong("codecov"),
.customLong("code-coverage"),
.customLong("coverage"),
],
inversion: .prefixedEnableDisable,
help: "Enable code coverage.",
)
var enableCodeCoverage: Bool = false

/// If the binary output path should be printed.
Expand Down
Loading