Skip to content

Commit 5036ef3

Browse files
committed
Use try XCTSkipIf(true) instead of excluding tests from test plan
1 parent 4f6afce commit 5036ef3

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

Modules/Tests/NetworkingTests/Mapper/InAppPurchaseOrderResultMapperTests.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import XCTest
44

55
final class InAppPurchasesOrderResultMapperTests: XCTestCase {
66
func test_iap_order_creation_is_decoded_from_json_response() throws {
7+
try XCTSkipIf(true)
8+
79
// Given
810
let jsonData = try XCTUnwrap(Loader.contentsOf("iap-order-create"))
911
let expectedOrderId = 12345

Modules/Tests/NetworkingTests/Mapper/InAppPurchasesProductsMapperTests.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import XCTest
44

55
final class InAppPurchasesProductsMapperTests: XCTestCase {
66
func test_iap_products_list_is_decoded_from_json_response() throws {
7+
try XCTSkipIf(true)
8+
79
// Given
810
let jsonData = try XCTUnwrap(Loader.contentsOf("iap-products"))
911
let expectedProductIdentifiers = [

Modules/Tests/NetworkingTests/Mapper/InAppPurchasesTransactionMapperTests.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import XCTest
44

55
final class InAppPurchasesTransactionMapperTests: XCTestCase {
66
func test_iap_handled_transaction_is_decoded_from_json_response() throws {
7+
try XCTSkipIf(true)
8+
79
// Given
810
let jsonData = try XCTUnwrap(Loader.contentsOf("iap-transaction-handled"))
911
let expectedSiteID = Int64(1234)
@@ -16,6 +18,8 @@ final class InAppPurchasesTransactionMapperTests: XCTestCase {
1618
}
1719

1820
func test_iap_unhandled_transaction_is_decoded_from_json_response() throws {
21+
try XCTSkipIf(true)
22+
1923
// Given
2024
let jsonData = try XCTUnwrap(Loader.contentsOf("iap-transaction-not-handled"))
2125
let expectedErrorMessage = "Transaction not found."

Modules/Tests/NetworkingTests/Remote/InAppPurchasesRemoteTests.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ class InAppPurchasesRemoteTests: XCTestCase {
2929
/// Verifies that 'moderateComment' as spam properly parses the successful response
3030
///
3131
func test_load_products_returns_list_of_products() throws {
32+
try XCTSkipIf(true)
33+
3234
// Given
3335
let remote = InAppPurchasesRemote(network: network)
3436

@@ -49,6 +51,8 @@ class InAppPurchasesRemoteTests: XCTestCase {
4951
}
5052

5153
func test_purchase_product_returns_created_order() throws {
54+
try XCTSkipIf(true)
55+
5256
// Given
5357
let remote = InAppPurchasesRemote(network: network)
5458

@@ -76,6 +80,8 @@ class InAppPurchasesRemoteTests: XCTestCase {
7680
}
7781

7882
func test_retrieveHandledTransactionSiteID_when_success_to_retrieve_response_and_transaction_is_handled_then_returns_siteID() throws {
83+
try XCTSkipIf(true)
84+
7985
// Given
8086
let remote = InAppPurchasesRemote(network: network)
8187
let transactionID: UInt64 = 1234
@@ -119,6 +125,8 @@ class InAppPurchasesRemoteTests: XCTestCase {
119125
}
120126

121127
func test_retrieveHandledTransactionSiteID_when_fails_to_retrieve_response_then_returns_network_error() throws {
128+
try XCTSkipIf(true)
129+
122130
// Given
123131
let remote = InAppPurchasesRemote(network: network)
124132
let transactionID: UInt64 = 1234

0 commit comments

Comments
 (0)