From 64f92ced47bafcf408d14e6ee79ceeb0e548442c Mon Sep 17 00:00:00 2001 From: "Felix M." Date: Thu, 8 Oct 2026 21:57:26 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20::=20Fix=20SwiftFormat=20Swift?= =?UTF-8?q?=20Testing=20violations?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove redundant `@Suite` attributes flagged by `redundantSwiftTestingSuite`. Disable `swiftTestingTestCaseNames` in the snapshot tests, as the test names are used for the snapshot reference file names. Co-Authored-By: Claude Opus 5.5 --- .../GradientActivityIndicatorViewSnapshotTests.swift | 3 ++- .../GradientLoadingBarControllerSnapshotests.swift | 3 ++- .../SnapshotTests/GradientLoadingBarViewSnapshotTests.swift | 3 ++- .../NotchGradientLoadingBarControllerSnapshotTests.swift | 3 ++- .../GradientActivityIndicatorView+ViewModelTests.swift | 1 - .../GradientLoadingBarController+ViewModelTests.swift | 1 - .../UnitTests/GradientLoadingBarView+ViewModelTests.swift | 1 - .../NotchGradientLoadingBarController+ViewModelTests.swift | 1 - 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Tests/GradientLoadingBarTests/SnapshotTests/GradientActivityIndicatorViewSnapshotTests.swift b/Tests/GradientLoadingBarTests/SnapshotTests/GradientActivityIndicatorViewSnapshotTests.swift index f565098..7132062 100644 --- a/Tests/GradientLoadingBarTests/SnapshotTests/GradientActivityIndicatorViewSnapshotTests.swift +++ b/Tests/GradientLoadingBarTests/SnapshotTests/GradientActivityIndicatorViewSnapshotTests.swift @@ -11,9 +11,10 @@ import Testing import UIKit @testable import GradientLoadingBar +// swiftformat:disable swiftTestingTestCaseNames + /// - Note: For more readable reference file names, we don't use raw identifiers for test names here. @MainActor -@Suite struct GradientActivityIndicatorViewSnapshotTests { // swiftlint:disable:previous type_name diff --git a/Tests/GradientLoadingBarTests/SnapshotTests/GradientLoadingBarControllerSnapshotests.swift b/Tests/GradientLoadingBarTests/SnapshotTests/GradientLoadingBarControllerSnapshotests.swift index adb0769..a7dfbb4 100644 --- a/Tests/GradientLoadingBarTests/SnapshotTests/GradientLoadingBarControllerSnapshotests.swift +++ b/Tests/GradientLoadingBarTests/SnapshotTests/GradientLoadingBarControllerSnapshotests.swift @@ -12,9 +12,10 @@ import Testing import UIKit @testable import GradientLoadingBar +// swiftformat:disable swiftTestingTestCaseNames + /// - Note: For more readable reference file names, we don't use raw identifiers for test names here. @MainActor -@Suite struct GradientLoadingBarControllerSnapshotTests { // swiftlint:disable:previous type_name diff --git a/Tests/GradientLoadingBarTests/SnapshotTests/GradientLoadingBarViewSnapshotTests.swift b/Tests/GradientLoadingBarTests/SnapshotTests/GradientLoadingBarViewSnapshotTests.swift index e1f28e9..2660c03 100644 --- a/Tests/GradientLoadingBarTests/SnapshotTests/GradientLoadingBarViewSnapshotTests.swift +++ b/Tests/GradientLoadingBarTests/SnapshotTests/GradientLoadingBarViewSnapshotTests.swift @@ -11,9 +11,10 @@ import SwiftUI import Testing @testable import GradientLoadingBar +// swiftformat:disable swiftTestingTestCaseNames + /// - Note: For more readable reference file names, we don't use raw identifiers for test names here. @MainActor -@Suite struct GradientLoadingBarViewSnapshotTests { // MARK: - Config diff --git a/Tests/GradientLoadingBarTests/SnapshotTests/NotchGradientLoadingBarControllerSnapshotTests.swift b/Tests/GradientLoadingBarTests/SnapshotTests/NotchGradientLoadingBarControllerSnapshotTests.swift index bc4846e..884d011 100644 --- a/Tests/GradientLoadingBarTests/SnapshotTests/NotchGradientLoadingBarControllerSnapshotTests.swift +++ b/Tests/GradientLoadingBarTests/SnapshotTests/NotchGradientLoadingBarControllerSnapshotTests.swift @@ -12,9 +12,10 @@ import Testing import UIKit @testable import GradientLoadingBar +// swiftformat:disable swiftTestingTestCaseNames + /// - Note: For more readable reference file names, we don't use raw identifiers for test names here. @MainActor -@Suite struct NotchGradientLoadingBarControllerSnapshotTests { // swiftlint:disable:previous type_name diff --git a/Tests/GradientLoadingBarTests/UnitTests/GradientActivityIndicatorView+ViewModelTests.swift b/Tests/GradientLoadingBarTests/UnitTests/GradientActivityIndicatorView+ViewModelTests.swift index f400161..565569a 100644 --- a/Tests/GradientLoadingBarTests/UnitTests/GradientActivityIndicatorView+ViewModelTests.swift +++ b/Tests/GradientLoadingBarTests/UnitTests/GradientActivityIndicatorView+ViewModelTests.swift @@ -11,7 +11,6 @@ import UIKit @testable import GradientLoadingBar @MainActor -@Suite struct `GradientActivityIndicatorView+ViewModelTests` { // swiftlint:disable:previous type_name diff --git a/Tests/GradientLoadingBarTests/UnitTests/GradientLoadingBarController+ViewModelTests.swift b/Tests/GradientLoadingBarTests/UnitTests/GradientLoadingBarController+ViewModelTests.swift index 05f0042..380c0cf 100644 --- a/Tests/GradientLoadingBarTests/UnitTests/GradientLoadingBarController+ViewModelTests.swift +++ b/Tests/GradientLoadingBarTests/UnitTests/GradientLoadingBarController+ViewModelTests.swift @@ -12,7 +12,6 @@ import UIKit @testable import GradientLoadingBar @MainActor -@Suite struct `GradientLoadingBarController+ViewModelTests` { // swiftlint:disable:previous type_name diff --git a/Tests/GradientLoadingBarTests/UnitTests/GradientLoadingBarView+ViewModelTests.swift b/Tests/GradientLoadingBarTests/UnitTests/GradientLoadingBarView+ViewModelTests.swift index 5459906..ae0e4ec 100644 --- a/Tests/GradientLoadingBarTests/UnitTests/GradientLoadingBarView+ViewModelTests.swift +++ b/Tests/GradientLoadingBarTests/UnitTests/GradientLoadingBarView+ViewModelTests.swift @@ -11,7 +11,6 @@ import Testing @testable import GradientLoadingBar @MainActor -@Suite struct `GradientLoadingBarView+ViewModelTests` { // swiftlint:disable:previous type_name diff --git a/Tests/GradientLoadingBarTests/UnitTests/NotchGradientLoadingBarController+ViewModelTests.swift b/Tests/GradientLoadingBarTests/UnitTests/NotchGradientLoadingBarController+ViewModelTests.swift index d2bf129..2d1bea7 100644 --- a/Tests/GradientLoadingBarTests/UnitTests/NotchGradientLoadingBarController+ViewModelTests.swift +++ b/Tests/GradientLoadingBarTests/UnitTests/NotchGradientLoadingBarController+ViewModelTests.swift @@ -10,7 +10,6 @@ import Testing @testable import GradientLoadingBar @MainActor -@Suite struct `NotchGradientLoadingBarController+ViewModelTests` { // swiftlint:disable:previous type_name