Skip to content

Commit cf46d14

Browse files
committed
Check that FIRAAppCheckDebugToken provided and tests are running
1 parent 6457031 commit cf46d14

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

FirebaseVertexAI/Tests/TestApp/Tests/Integration/IntegrationTests.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ final class IntegrationTests: XCTestCase {
4545
var userID1 = ""
4646

4747
override func setUp() async throws {
48+
let environment = ProcessInfo.processInfo.environment
49+
if environment["FIRAAppCheckDebugToken"] == nil {
50+
XCTFail("No App Check debug token provided in FIRAAppCheckDebugToken.")
51+
} else {
52+
XCTFail("App Check debug token provided; failing to check that tests are running.")
53+
}
54+
4855
let authResult = try await Auth.auth().signIn(
4956
withEmail: Credentials.emailAddress1,
5057
password: Credentials.emailPassword1

0 commit comments

Comments
 (0)