Skip to content

Commit

Permalink
disable more tests in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kiliankoe committed Nov 15, 2024
1 parent cf86d15 commit d5b592d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Tests/APIValidationTests/CardserviceAPITests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d5b592d

Please sign in to comment.