Skip to content

Commit 0d28c07

Browse files
committed
Add comments to deprecated tests explaining that they aren't skipped
1 parent bc9a2b5 commit 0d28c07

File tree

6 files changed

+11
-0
lines changed

6 files changed

+11
-0
lines changed

Tests/SwiftDocCTests/Converter/DocumentationConverterTests.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
import XCTest
1313
@testable import SwiftDocC
1414

15+
// This test verifies the behavior of `DocumentationConverter` which is a deprecated type.
16+
// Deprecating the test silences the deprecation warning when running the tests. It doesn't skip the test.
1517
@available(*, deprecated, message: "This deprecated API will be removed after 6.2 is released")
1618
class DocumentationConverterTests: XCTestCase {
1719
/// An empty implementation of `ConvertOutputConsumer` that purposefully does nothing.

Tests/SwiftDocCTests/Infrastructure/BundleDiscoveryTests.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ class BundleDiscoveryTests: XCTestCase {
2727
}
2828

2929
// This tests registration of multiple catalogs which is deprecated
30+
// Deprecating the test silences the deprecation warning when running the tests. It doesn't skip the test.
3031
@available(*, deprecated, message: "This deprecated API will be removed after 6.2 is released")
3132
func testFirstBundle() throws {
3233
let url = try createTemporaryDirectory()
@@ -63,6 +64,7 @@ class BundleDiscoveryTests: XCTestCase {
6364
}
6465

6566
// This test registration more than once data provider which is deprecated.
67+
// Deprecating the test silences the deprecation warning when running the tests. It doesn't skip the test.
6668
@available(*, deprecated, message: "This deprecated API will be removed after 6.2 is released")
6769
func testLoadComplexWorkspace() throws {
6870
let allFiles = try flatListOfFiles()

Tests/SwiftDocCTests/Infrastructure/DocumentationContext/DocumentationContextTests.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ extension CollectionDifference {
3737

3838
class DocumentationContextTests: XCTestCase {
3939
// This test checks unregistration of workspace data providers which is deprecated
40+
// Deprecating the test silences the deprecation warning when running the tests. It doesn't skip the test.
4041
@available(*, deprecated, message: "This deprecated API will be removed after 6.2 is released")
4142
func testResolve() throws {
4243
let workspace = DocumentationWorkspace()
@@ -602,6 +603,7 @@ class DocumentationContextTests: XCTestCase {
602603
}
603604

604605
// This test registration more than once data provider which is deprecated.
606+
// Deprecating the test silences the deprecation warning when running the tests. It doesn't skip the test.
605607
@available(*, deprecated, message: "This deprecated API will be removed after 6.2 is released")
606608
func testCreatesCorrectIdentifiers() throws {
607609
let testBundleLocation = Bundle.module.url(

Tests/SwiftDocCTests/Infrastructure/DocumentationWorkspaceTests.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
import XCTest
1212
@testable import SwiftDocC
1313

14+
// This test verifies the behavior of `DocumentationWorkspace` which is a deprecated type.
15+
// Deprecating the test silences the deprecation warning when running the tests. It doesn't skip the test.
1416
@available(*, deprecated, message: "This deprecated API will be removed after 6.2 is released")
1517
class DocumentationWorkspaceTests: XCTestCase {
1618
func testEmptyWorkspace() {

Tests/SwiftDocCTests/Infrastructure/GeneratedDataProvider.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ import XCTest
1212
@testable import SwiftDocC
1313
import SymbolKit
1414

15+
// This test verifies the behavior of `GeneratedDataProvider` which is a deprecated type.
16+
// Deprecating the test silences the deprecation warning when running the tests. It doesn't skip the test.
1517
@available(*, deprecated, message: "Use 'DocumentationContext.InputProvider' instead. This deprecated API will be removed after 6.2 is released")
1618
class GeneratedDataProviderTests: XCTestCase {
1719

Tests/SwiftDocCTests/Infrastructure/Input Discovery/DocumentationInputsProviderTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import SwiftDocCTestUtilities
1515
class DocumentationInputsProviderTests: XCTestCase {
1616

1717
// After 6.2 we can update this test to verify that the input provider discovers the same inputs regardless of FileManagerProtocol
18+
// Deprecating the test silences the deprecation warning when running the tests. It doesn't skip the test.
1819
@available(*, deprecated, message: "This test uses `LocalFileSystemDataProvider` as a `DocumentationWorkspaceDataProvider` which is deprecated and will be removed after 6.2 is released")
1920
func testDiscoversSameFilesAsPreviousImplementation() throws {
2021
let folderHierarchy = Folder(name: "one", content: [

0 commit comments

Comments
 (0)