1212// See the License for the specific language governing permissions and
1313// limitations under the License.
1414
15- import XCTest
16-
1715@testable import App
1816
1917import Dependencies
2018import InlineSnapshotTesting
2119import SwiftSoup
20+ import Testing
2221
2322
24- final class DocumentationPageProcessorTests : AppTestCase {
23+ @ Suite struct DocumentationPageProcessorTests {
2524
26- func test_header_linkTitle ( ) throws {
25+ @ Test func header_linkTitle ( ) throws {
2726 // https://github.com/SwiftPackageIndex/SwiftPackageIndex-Server/issues/2249
2827 try withDependencies {
2928 $0. timeZone = . utc
@@ -35,7 +34,7 @@ final class DocumentationPageProcessorTests: AppTestCase {
3534 . init( archive: coreArchive, isCurrent: false ) ,
3635 . init( archive: signerArchive, isCurrent: true )
3736 ]
38- let processor = try XCTUnwrap (
37+ let processor = try #require (
3938 DocumentationPageProcessor (
4039 repositoryOwner: " owner " ,
4140 repositoryOwnerName: " Owner Name " ,
@@ -64,7 +63,7 @@ final class DocumentationPageProcessorTests: AppTestCase {
6463 }
6564 }
6665
67- func test_rewriteBaseUrls ( ) throws {
66+ @ Test func rewriteBaseUrls ( ) throws {
6867 // Test rewriting of a `baseURL = "/"` (dynamic hosting) index.html
6968 let html = try fixtureString ( for: " doc-index-dynamic-hosting.html " )
7069 do {
@@ -84,7 +83,7 @@ final class DocumentationPageProcessorTests: AppTestCase {
8483 }
8584 }
8685
87- func test_rewriteScriptBaseUrl ( ) throws {
86+ @ Test func rewriteScriptBaseUrl ( ) throws {
8887 do { // test rewriting of "/" base url
8988 let doc = try SwiftSoup . parse ( #"""
9089 <script>var baseUrl = "/"</script>
@@ -119,7 +118,7 @@ final class DocumentationPageProcessorTests: AppTestCase {
119118 }
120119 }
121120
122- func test_rewriteScriptBaseUrl_whiteSpace ( ) throws {
121+ @ Test func rewriteScriptBaseUrl_whiteSpace ( ) throws {
123122 // test rewriting of "/" base url with whitespace
124123 do {
125124 let doc = try SwiftSoup . parse ( #"""
@@ -193,7 +192,7 @@ final class DocumentationPageProcessorTests: AppTestCase {
193192 }
194193 }
195194
196- func test_rewriteAttribute_current ( ) throws {
195+ @ Test func rewriteAttribute_current ( ) throws {
197196 do { // test rewriting of un-prefixed src attributes
198197 let doc = try SwiftSoup . parse ( #"""
199198 <script src="/js/index-1.js"></script>
@@ -251,7 +250,7 @@ final class DocumentationPageProcessorTests: AppTestCase {
251250 }
252251 }
253252
254- func test_rewriteAttribute_toReference ( ) throws {
253+ @ Test func rewriteAttribute_toReference ( ) throws {
255254 do { // test rewriting of un-prefixed src attributes
256255 let doc = try SwiftSoup . parse ( #"""
257256 <script src="/js/index-1.js"></script>
0 commit comments