From 6e8d07c453b9b6815fbbd1458937ecc61f404dee Mon Sep 17 00:00:00 2001 From: Francesco Paolo Severino Date: Sat, 12 Oct 2024 15:02:57 +0200 Subject: [PATCH] Fix test names --- Tests/OrdersTests/EncryptedOrdersTests.swift | 6 +++--- Tests/OrdersTests/OrdersTests.swift | 14 +++++++------- Tests/PassesTests/EncryptedPassesTests.swift | 8 ++++---- Tests/PassesTests/PassesTests.swift | 20 ++++++++++---------- 4 files changed, 24 insertions(+), 24 deletions(-) diff --git a/Tests/OrdersTests/EncryptedOrdersTests.swift b/Tests/OrdersTests/EncryptedOrdersTests.swift index 78e6334..368b7dc 100644 --- a/Tests/OrdersTests/EncryptedOrdersTests.swift +++ b/Tests/OrdersTests/EncryptedOrdersTests.swift @@ -6,12 +6,12 @@ import Zip @testable import Orders -@Suite("Orders Tests with encrypted PEM key") +@Suite("Orders Tests with Encrypted PEM Key") struct EncryptedOrdersTests { let delegate = EncryptedOrdersDelegate() let ordersURI = "/api/orders/v1/" - @Test("Test order generation") + @Test("Order Generation") func orderGeneration() async throws { try await withApp(delegate: delegate) { app, ordersService in let orderData = OrderData(title: "Test Order") @@ -38,7 +38,7 @@ struct EncryptedOrdersTests { } } - @Test("Test APNS client") + @Test("APNS Client") func apnsClient() async throws { try await withApp(delegate: delegate) { app, ordersService in #expect(app.apns.client(.init(string: "orders")) != nil) diff --git a/Tests/OrdersTests/OrdersTests.swift b/Tests/OrdersTests/OrdersTests.swift index 84d5edf..c7d1557 100644 --- a/Tests/OrdersTests/OrdersTests.swift +++ b/Tests/OrdersTests/OrdersTests.swift @@ -11,7 +11,7 @@ struct OrdersTests { let delegate = TestOrdersDelegate() let ordersURI = "/api/orders/v1/" - @Test("Test order generation") + @Test("Order Generation") func orderGeneration() async throws { try await withApp(delegate: delegate) { app, ordersService in let orderData = OrderData(title: "Test Order") @@ -39,7 +39,7 @@ struct OrdersTests { } } - @Test("Getting order from Apple Wallet API") + @Test("Getting Order from Apple Wallet API") func getOrderFromAPI() async throws { try await withApp(delegate: delegate) { app, ordersService in let orderData = OrderData(title: "Test Order") @@ -115,7 +115,7 @@ struct OrdersTests { } } - @Test("Test device registration API") + @Test("Device Registration API") func apiDeviceRegistration() async throws { try await withApp(delegate: delegate) { app, ordersService in let orderData = OrderData(title: "Test Order") @@ -268,7 +268,7 @@ struct OrdersTests { } } - @Test("Test error logging") + @Test("Error Logging") func errorLog() async throws { try await withApp(delegate: delegate) { app, ordersService in let log1 = "Error 1" @@ -313,7 +313,7 @@ struct OrdersTests { } } - @Test("Test APNS client") + @Test("APNS Client") func apnsClient() async throws { try await withApp(delegate: delegate) { app, ordersService in #expect(app.apns.client(.init(string: "orders")) != nil) @@ -387,7 +387,7 @@ struct OrdersTests { } } - @Test("Test OrdersError") + @Test("OrdersError") func ordersError() { #expect(OrdersError.templateNotDirectory.description == "OrdersError(errorType: templateNotDirectory)") #expect(OrdersError.pemCertificateMissing.description == "OrdersError(errorType: pemCertificateMissing)") @@ -395,7 +395,7 @@ struct OrdersTests { #expect(OrdersError.opensslBinaryMissing.description == "OrdersError(errorType: opensslBinaryMissing)") } - @Test("Test default OrdersDelegate properties") + @Test("Default OrdersDelegate Properties") func defaultDelegate() { let delegate = DefaultOrdersDelegate() #expect(delegate.wwdrCertificate == "WWDR.pem") diff --git a/Tests/PassesTests/EncryptedPassesTests.swift b/Tests/PassesTests/EncryptedPassesTests.swift index 5596d03..f533c6e 100644 --- a/Tests/PassesTests/EncryptedPassesTests.swift +++ b/Tests/PassesTests/EncryptedPassesTests.swift @@ -5,12 +5,12 @@ import Zip @testable import Passes -@Suite("Passes Tests with encrypted PEM key") +@Suite("Passes Tests with Encrypted PEM Key") struct EncryptedPassesTests { let delegate = EncryptedPassesDelegate() let passesURI = "/api/passes/v1/" - @Test("Test pass generation") + @Test("Pass Generation") func passGeneration() async throws { try await withApp(delegate: delegate) { app, passesService in let passData = PassData(title: "Test Pass") @@ -38,7 +38,7 @@ struct EncryptedPassesTests { } } - @Test("Personalizable pass Apple Wallet API") + @Test("Personalizable Pass Apple Wallet API") func personalizationAPI() async throws { try await withApp(delegate: delegate) { app, passesService in let passData = PassData(title: "Personalize") @@ -85,7 +85,7 @@ struct EncryptedPassesTests { } } - @Test("Test APNS client") + @Test("APNS Client") func apnsClient() async throws { try await withApp(delegate: delegate) { app, passesService in #expect(app.apns.client(.init(string: "passes")) != nil) diff --git a/Tests/PassesTests/PassesTests.swift b/Tests/PassesTests/PassesTests.swift index a5c8451..7742d25 100644 --- a/Tests/PassesTests/PassesTests.swift +++ b/Tests/PassesTests/PassesTests.swift @@ -11,7 +11,7 @@ struct PassesTests { let delegate = TestPassesDelegate() let passesURI = "/api/passes/v1/" - @Test("Test pass generation") + @Test("Pass Generation") func passGeneration() async throws { try await withApp(delegate: delegate) { app, passesService in let passData = PassData(title: "Test Pass") @@ -41,7 +41,7 @@ struct PassesTests { } } - @Test("Test generating multiple passes") + @Test("Generating Multiple Passes") func passesGeneration() async throws { try await withApp(delegate: delegate) { app, passesService in let passData1 = PassData(title: "Test Pass 1") @@ -64,7 +64,7 @@ struct PassesTests { } } - @Test("Test personalizable pass") + @Test("Personalizable Passes") func personalization() async throws { try await withApp(delegate: delegate) { app, passesService in let passData = PassData(title: "Personalize") @@ -94,7 +94,7 @@ struct PassesTests { } } - @Test("Getting pass from Apple Wallet API") + @Test("Getting Pass from Apple Wallet API") func getPassFromAPI() async throws { try await withApp(delegate: delegate) { app, passesService in let passData = PassData(title: "Test Pass") @@ -170,7 +170,7 @@ struct PassesTests { } } - @Test("Personalizable pass Apple Wallet API") + @Test("Personalizable Pass Apple Wallet API") func personalizationAPI() async throws { try await withApp(delegate: delegate) { app, passesService in let passData = PassData(title: "Personalize") @@ -240,7 +240,7 @@ struct PassesTests { } } - @Test("Test device registration API") + @Test("Device Registration API") func apiDeviceRegistration() async throws { try await withApp(delegate: delegate) { app, passesService in let passData = PassData(title: "Test Pass") @@ -393,7 +393,7 @@ struct PassesTests { } } - @Test("Test error logging") + @Test("Error Logging") func errorLog() async throws { try await withApp(delegate: delegate) { app, passesService in let log1 = "Error 1" @@ -438,7 +438,7 @@ struct PassesTests { } } - @Test("Test APNS client") + @Test("APNS Client") func apnsClient() async throws { try await withApp(delegate: delegate) { app, passesService in #expect(app.apns.client(.init(string: "passes")) != nil) @@ -512,7 +512,7 @@ struct PassesTests { } } - @Test("Test PassesError") + @Test("PassesError") func passesError() { #expect(PassesError.templateNotDirectory.description == "PassesError(errorType: templateNotDirectory)") #expect(PassesError.pemCertificateMissing.description == "PassesError(errorType: pemCertificateMissing)") @@ -521,7 +521,7 @@ struct PassesTests { #expect(PassesError.invalidNumberOfPasses.description == "PassesError(errorType: invalidNumberOfPasses)") } - @Test("Test default PassesDelegate properties") + @Test("Default PassesDelegate Properties") func defaultDelegate() async throws { let defaultDelegate = DefaultPassesDelegate() #expect(defaultDelegate.wwdrCertificate == "WWDR.pem")