diff --git a/Tests/APIValidationTests/CardserviceAPITests.swift b/Tests/APIValidationTests/CardserviceAPITests.swift index 9f8f939..b20dd18 100644 --- a/Tests/APIValidationTests/CardserviceAPITests.swift +++ b/Tests/APIValidationTests/CardserviceAPITests.swift @@ -51,19 +51,27 @@ class CardserviceAPITests: XCTestCase { func testLoginSuccess() async throws { if ProcessInfo.processInfo.environment["CI"] != nil { - print("Skipping successful login test in CI.") + print("Skipping test in CI.") return } _ = try await Cardservice.login(username: username, password: password) } func testFetchCarddata() async throws { + if ProcessInfo.processInfo.environment["CI"] != nil { + print("Skipping test in CI.") + return + } let cardservice = try await Cardservice.login(username: username, password: password) let carddata = try await cardservice.carddata() XCTAssert(!carddata.isEmpty) } func testFetchTransactions() async throws { + if ProcessInfo.processInfo.environment["CI"] != nil { + print("Skipping test in CI.") + return + } let cardservice = try await Cardservice.login(username: username, password: password) let oneWeekAgo = Date().addingTimeInterval(-1 * 60 * 60 * 24 * 7) _ = try await cardservice.transactions(begin: oneWeekAgo)