From cd49f2355eaee6ca44e67787dc481b9dc04b461c Mon Sep 17 00:00:00 2001 From: Alex da Franca Date: Sun, 16 Jun 2024 13:11:52 +0200 Subject: [PATCH] Reverted swift package version back to 5.6 Fixed bug introduced in last version, which broke unit tests as well --- CHANGELOG.md | 5 +++++ CommandlineTool/main.swift | 2 +- Package.swift | 2 +- README.md | 2 +- Sources/xcresultparser/XCResultFormatter.swift | 2 +- 5 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f56af2..e560904 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## Version 1.6.3 - 2024-06-16 +### CHANGES: +Reverted swift package version back to 5.6 +Fixed bug introduced in last version, which broke unit tests as well + ## Version 1.6.2 - 2024-06-14 ### CHANGES: Fix crash for cobertura coverage converter diff --git a/CommandlineTool/main.swift b/CommandlineTool/main.swift index 902d4a4..81c4edd 100644 --- a/CommandlineTool/main.swift +++ b/CommandlineTool/main.swift @@ -9,7 +9,7 @@ import ArgumentParser import Foundation import XcresultparserLib -private let marketingVersion = "1.6.2" +private let marketingVersion = "1.6.3" struct xcresultparser: ParsableCommand { static let configuration = CommandConfiguration( diff --git a/Package.swift b/Package.swift index 0754167..5e38742 100644 --- a/Package.swift +++ b/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version:5.9 +// swift-tools-version:5.6 import PackageDescription let package = Package( diff --git a/README.md b/README.md index 51f7a55..ae4678e 100644 --- a/README.md +++ b/README.md @@ -87,7 +87,7 @@ You should see the tool respond like this: ``` Error: Missing expected argument '' -OVERVIEW: xcresultparser 1.6.1 +OVERVIEW: xcresultparser 1.6.3 Interpret binary .xcresult files and print summary in different formats: txt, xml, html or colored cli output. diff --git a/Sources/xcresultparser/XCResultFormatter.swift b/Sources/xcresultparser/XCResultFormatter.swift index bc14eee..006d103 100644 --- a/Sources/xcresultparser/XCResultFormatter.swift +++ b/Sources/xcresultparser/XCResultFormatter.swift @@ -370,7 +370,7 @@ public struct XCResultFormatter { let covPercent = percentFormatter.unwrappedString(for: target.lineCoverage * 100) executableLines += target.executableLines coveredLines += target.coveredLines - guard coverageReportFormat == .totals else { + guard coverageReportFormat != .totals else { return CodeCoverageParseResult(lines: lines, executableLines: executableLines, coveredLines: coveredLines) } lines.append(