diff --git a/Tests/SkipFirebaseAnalyticsTests/SkipFirebaseAnalyticsTests.swift b/Tests/SkipFirebaseAnalyticsTests/SkipFirebaseAnalyticsTests.swift index f021254..ead6986 100644 --- a/Tests/SkipFirebaseAnalyticsTests/SkipFirebaseAnalyticsTests.swift +++ b/Tests/SkipFirebaseAnalyticsTests/SkipFirebaseAnalyticsTests.swift @@ -12,6 +12,7 @@ import SkipFirebaseAnalytics let logger: Logger = Logger(subsystem: "SkipFirebaseAnalyticsTests", category: "Tests") +// SKIP INSERT: @org.junit.runner.RunWith(androidx.test.ext.junit.runners.AndroidJUnit4::class) @MainActor final class SkipFirebaseAnalyticsTests: XCTestCase { func testSkipFirebaseAnalyticsTests() async throws { Analytics.logEvent("x", parameters: ["a": [1, 2, false]]) diff --git a/Tests/SkipFirebaseAnalyticsTests/XCSkipTests.swift b/Tests/SkipFirebaseAnalyticsTests/XCSkipTests.swift deleted file mode 100644 index 78826e4..0000000 --- a/Tests/SkipFirebaseAnalyticsTests/XCSkipTests.swift +++ /dev/null @@ -1,29 +0,0 @@ -// SPDX-License-Identifier: LGPL-3.0-only WITH LGPL-3.0-linking-exception -import Foundation -#if os(macOS) // Skip transpiled tests only run on macOS targets -import SkipTest - -/// This test case will run the transpiled tests for the Skip module. -@available(macOS 13, macCatalyst 16, *) -final class XCSkipTests: XCTestCase, XCGradleHarness { - public func testSkipModule() async throws { - // Run the transpiled JUnit tests for the current test module. - // These tests will be executed locally using Robolectric. - // Connected device or emulator tests can be run by setting the - // `ANDROID_SERIAL` environment variable to an `adb devices` - // ID in the scheme's Run settings. - // - // Note that it isn't currently possible to filter the tests to run. - try await runGradleTests() - } -} -#endif - -/// True when running in a transpiled Java runtime environment -let isJava = ProcessInfo.processInfo.environment["java.io.tmpdir"] != nil -/// True when running within an Android environment (either an emulator or device) -let isAndroid = isJava && ProcessInfo.processInfo.environment["ANDROID_ROOT"] != nil -/// True is the transpiled code is currently running in the local Robolectric test environment -let isRobolectric = isJava && !isAndroid -/// True if the system's `Int` type is 32-bit. -let is32BitInteger = Int64(Int.max) == Int64(Int32.max) diff --git a/Tests/SkipFirebaseAppCheckTests/SkipFirebaseAppCheckTests.swift b/Tests/SkipFirebaseAppCheckTests/SkipFirebaseAppCheckTests.swift index 7b5352b..2d30251 100644 --- a/Tests/SkipFirebaseAppCheckTests/SkipFirebaseAppCheckTests.swift +++ b/Tests/SkipFirebaseAppCheckTests/SkipFirebaseAppCheckTests.swift @@ -12,6 +12,7 @@ import SkipFirebaseAppCheck let logger: Logger = Logger(subsystem: "SkipFirebaseAppCheckTests", category: "Tests") +// SKIP INSERT: @org.junit.runner.RunWith(androidx.test.ext.junit.runners.AndroidJUnit4::class) @MainActor final class SkipFirebaseAppCheckTests: XCTestCase { func testSkipFirebaseAppCheckTests() async throws { if false { diff --git a/Tests/SkipFirebaseAppCheckTests/XCSkipTests.swift b/Tests/SkipFirebaseAppCheckTests/XCSkipTests.swift deleted file mode 100644 index 78826e4..0000000 --- a/Tests/SkipFirebaseAppCheckTests/XCSkipTests.swift +++ /dev/null @@ -1,29 +0,0 @@ -// SPDX-License-Identifier: LGPL-3.0-only WITH LGPL-3.0-linking-exception -import Foundation -#if os(macOS) // Skip transpiled tests only run on macOS targets -import SkipTest - -/// This test case will run the transpiled tests for the Skip module. -@available(macOS 13, macCatalyst 16, *) -final class XCSkipTests: XCTestCase, XCGradleHarness { - public func testSkipModule() async throws { - // Run the transpiled JUnit tests for the current test module. - // These tests will be executed locally using Robolectric. - // Connected device or emulator tests can be run by setting the - // `ANDROID_SERIAL` environment variable to an `adb devices` - // ID in the scheme's Run settings. - // - // Note that it isn't currently possible to filter the tests to run. - try await runGradleTests() - } -} -#endif - -/// True when running in a transpiled Java runtime environment -let isJava = ProcessInfo.processInfo.environment["java.io.tmpdir"] != nil -/// True when running within an Android environment (either an emulator or device) -let isAndroid = isJava && ProcessInfo.processInfo.environment["ANDROID_ROOT"] != nil -/// True is the transpiled code is currently running in the local Robolectric test environment -let isRobolectric = isJava && !isAndroid -/// True if the system's `Int` type is 32-bit. -let is32BitInteger = Int64(Int.max) == Int64(Int32.max) diff --git a/Tests/SkipFirebaseAuthTests/SkipFirebaseAuthTests.swift b/Tests/SkipFirebaseAuthTests/SkipFirebaseAuthTests.swift index 686eac8..925e416 100644 --- a/Tests/SkipFirebaseAuthTests/SkipFirebaseAuthTests.swift +++ b/Tests/SkipFirebaseAuthTests/SkipFirebaseAuthTests.swift @@ -12,6 +12,7 @@ import SkipFirebaseAuth let logger: Logger = Logger(subsystem: "SkipBase", category: "Tests") +// SKIP INSERT: @org.junit.runner.RunWith(androidx.test.ext.junit.runners.AndroidJUnit4::class) @MainActor final class SkipFirebaseAuthTests: XCTestCase { func testSkipFirebaseAuthTests() async throws { if false { diff --git a/Tests/SkipFirebaseAuthTests/XCSkipTests.swift b/Tests/SkipFirebaseAuthTests/XCSkipTests.swift deleted file mode 100644 index 78826e4..0000000 --- a/Tests/SkipFirebaseAuthTests/XCSkipTests.swift +++ /dev/null @@ -1,29 +0,0 @@ -// SPDX-License-Identifier: LGPL-3.0-only WITH LGPL-3.0-linking-exception -import Foundation -#if os(macOS) // Skip transpiled tests only run on macOS targets -import SkipTest - -/// This test case will run the transpiled tests for the Skip module. -@available(macOS 13, macCatalyst 16, *) -final class XCSkipTests: XCTestCase, XCGradleHarness { - public func testSkipModule() async throws { - // Run the transpiled JUnit tests for the current test module. - // These tests will be executed locally using Robolectric. - // Connected device or emulator tests can be run by setting the - // `ANDROID_SERIAL` environment variable to an `adb devices` - // ID in the scheme's Run settings. - // - // Note that it isn't currently possible to filter the tests to run. - try await runGradleTests() - } -} -#endif - -/// True when running in a transpiled Java runtime environment -let isJava = ProcessInfo.processInfo.environment["java.io.tmpdir"] != nil -/// True when running within an Android environment (either an emulator or device) -let isAndroid = isJava && ProcessInfo.processInfo.environment["ANDROID_ROOT"] != nil -/// True is the transpiled code is currently running in the local Robolectric test environment -let isRobolectric = isJava && !isAndroid -/// True if the system's `Int` type is 32-bit. -let is32BitInteger = Int64(Int.max) == Int64(Int32.max) diff --git a/Tests/SkipFirebaseCoreTests/SkipFirebaseCoreTests.swift b/Tests/SkipFirebaseCoreTests/SkipFirebaseCoreTests.swift index ad0e389..d1989dc 100644 --- a/Tests/SkipFirebaseCoreTests/SkipFirebaseCoreTests.swift +++ b/Tests/SkipFirebaseCoreTests/SkipFirebaseCoreTests.swift @@ -10,6 +10,7 @@ import SkipFirebaseCore let logger: Logger = Logger(subsystem: "SkipBase", category: "Tests") +// SKIP INSERT: @org.junit.runner.RunWith(androidx.test.ext.junit.runners.AndroidJUnit4::class) @MainActor final class SkipFirebaseCoreTests: XCTestCase { func testSkipFirebase() { } diff --git a/Tests/SkipFirebaseCoreTests/XCSkipTests.swift b/Tests/SkipFirebaseCoreTests/XCSkipTests.swift deleted file mode 100644 index 78826e4..0000000 --- a/Tests/SkipFirebaseCoreTests/XCSkipTests.swift +++ /dev/null @@ -1,29 +0,0 @@ -// SPDX-License-Identifier: LGPL-3.0-only WITH LGPL-3.0-linking-exception -import Foundation -#if os(macOS) // Skip transpiled tests only run on macOS targets -import SkipTest - -/// This test case will run the transpiled tests for the Skip module. -@available(macOS 13, macCatalyst 16, *) -final class XCSkipTests: XCTestCase, XCGradleHarness { - public func testSkipModule() async throws { - // Run the transpiled JUnit tests for the current test module. - // These tests will be executed locally using Robolectric. - // Connected device or emulator tests can be run by setting the - // `ANDROID_SERIAL` environment variable to an `adb devices` - // ID in the scheme's Run settings. - // - // Note that it isn't currently possible to filter the tests to run. - try await runGradleTests() - } -} -#endif - -/// True when running in a transpiled Java runtime environment -let isJava = ProcessInfo.processInfo.environment["java.io.tmpdir"] != nil -/// True when running within an Android environment (either an emulator or device) -let isAndroid = isJava && ProcessInfo.processInfo.environment["ANDROID_ROOT"] != nil -/// True is the transpiled code is currently running in the local Robolectric test environment -let isRobolectric = isJava && !isAndroid -/// True if the system's `Int` type is 32-bit. -let is32BitInteger = Int64(Int.max) == Int64(Int32.max) diff --git a/Tests/SkipFirebaseCrashlyticsTests/SkipFirebaseCrashlyticsTests.swift b/Tests/SkipFirebaseCrashlyticsTests/SkipFirebaseCrashlyticsTests.swift index 24a1924..0c68690 100644 --- a/Tests/SkipFirebaseCrashlyticsTests/SkipFirebaseCrashlyticsTests.swift +++ b/Tests/SkipFirebaseCrashlyticsTests/SkipFirebaseCrashlyticsTests.swift @@ -12,6 +12,7 @@ import SkipFirebaseCrashlytics let logger: Logger = Logger(subsystem: "SkipFirebaseCrashlyticsTests", category: "Tests") +// SKIP INSERT: @org.junit.runner.RunWith(androidx.test.ext.junit.runners.AndroidJUnit4::class) @MainActor final class SkipFirebaseCrashlyticsTests: XCTestCase { func testSkipFirebaseCrashlyticsTests() async throws { if false { diff --git a/Tests/SkipFirebaseCrashlyticsTests/XCSkipTests.swift b/Tests/SkipFirebaseCrashlyticsTests/XCSkipTests.swift deleted file mode 100644 index 78826e4..0000000 --- a/Tests/SkipFirebaseCrashlyticsTests/XCSkipTests.swift +++ /dev/null @@ -1,29 +0,0 @@ -// SPDX-License-Identifier: LGPL-3.0-only WITH LGPL-3.0-linking-exception -import Foundation -#if os(macOS) // Skip transpiled tests only run on macOS targets -import SkipTest - -/// This test case will run the transpiled tests for the Skip module. -@available(macOS 13, macCatalyst 16, *) -final class XCSkipTests: XCTestCase, XCGradleHarness { - public func testSkipModule() async throws { - // Run the transpiled JUnit tests for the current test module. - // These tests will be executed locally using Robolectric. - // Connected device or emulator tests can be run by setting the - // `ANDROID_SERIAL` environment variable to an `adb devices` - // ID in the scheme's Run settings. - // - // Note that it isn't currently possible to filter the tests to run. - try await runGradleTests() - } -} -#endif - -/// True when running in a transpiled Java runtime environment -let isJava = ProcessInfo.processInfo.environment["java.io.tmpdir"] != nil -/// True when running within an Android environment (either an emulator or device) -let isAndroid = isJava && ProcessInfo.processInfo.environment["ANDROID_ROOT"] != nil -/// True is the transpiled code is currently running in the local Robolectric test environment -let isRobolectric = isJava && !isAndroid -/// True if the system's `Int` type is 32-bit. -let is32BitInteger = Int64(Int.max) == Int64(Int32.max) diff --git a/Tests/SkipFirebaseDatabaseTests/SkipFirebaseDatabaseTests.swift b/Tests/SkipFirebaseDatabaseTests/SkipFirebaseDatabaseTests.swift index e3fd97f..5b1fb85 100644 --- a/Tests/SkipFirebaseDatabaseTests/SkipFirebaseDatabaseTests.swift +++ b/Tests/SkipFirebaseDatabaseTests/SkipFirebaseDatabaseTests.swift @@ -12,6 +12,7 @@ import SkipFirebaseDatabase let logger: Logger = Logger(subsystem: "SkipFirebaseDatabaseTests", category: "Tests") +// SKIP INSERT: @org.junit.runner.RunWith(androidx.test.ext.junit.runners.AndroidJUnit4::class) @MainActor final class SkipFirebaseDatabaseTests: XCTestCase { func testSkipFirebaseDatabaseTests() async throws { if false { diff --git a/Tests/SkipFirebaseDatabaseTests/XCSkipTests.swift b/Tests/SkipFirebaseDatabaseTests/XCSkipTests.swift deleted file mode 100644 index 78826e4..0000000 --- a/Tests/SkipFirebaseDatabaseTests/XCSkipTests.swift +++ /dev/null @@ -1,29 +0,0 @@ -// SPDX-License-Identifier: LGPL-3.0-only WITH LGPL-3.0-linking-exception -import Foundation -#if os(macOS) // Skip transpiled tests only run on macOS targets -import SkipTest - -/// This test case will run the transpiled tests for the Skip module. -@available(macOS 13, macCatalyst 16, *) -final class XCSkipTests: XCTestCase, XCGradleHarness { - public func testSkipModule() async throws { - // Run the transpiled JUnit tests for the current test module. - // These tests will be executed locally using Robolectric. - // Connected device or emulator tests can be run by setting the - // `ANDROID_SERIAL` environment variable to an `adb devices` - // ID in the scheme's Run settings. - // - // Note that it isn't currently possible to filter the tests to run. - try await runGradleTests() - } -} -#endif - -/// True when running in a transpiled Java runtime environment -let isJava = ProcessInfo.processInfo.environment["java.io.tmpdir"] != nil -/// True when running within an Android environment (either an emulator or device) -let isAndroid = isJava && ProcessInfo.processInfo.environment["ANDROID_ROOT"] != nil -/// True is the transpiled code is currently running in the local Robolectric test environment -let isRobolectric = isJava && !isAndroid -/// True if the system's `Int` type is 32-bit. -let is32BitInteger = Int64(Int.max) == Int64(Int32.max) diff --git a/Tests/SkipFirebaseFirestoreTests/SkipFirebaseFirestoreTests.swift b/Tests/SkipFirebaseFirestoreTests/SkipFirebaseFirestoreTests.swift index d62bdab..975d8d1 100644 --- a/Tests/SkipFirebaseFirestoreTests/SkipFirebaseFirestoreTests.swift +++ b/Tests/SkipFirebaseFirestoreTests/SkipFirebaseFirestoreTests.swift @@ -13,6 +13,15 @@ import SkipFirebaseFirestore let logger: Logger = Logger(subsystem: "SkipFirebaseFirestoreTests", category: "Tests") +/// True when running in a transpiled Java runtime environment +let isJava = ProcessInfo.processInfo.environment["java.io.tmpdir"] != nil +/// True when running within an Android environment (either an emulator or device) +let isAndroid = isJava && ProcessInfo.processInfo.environment["ANDROID_ROOT"] != nil +/// True is the transpiled code is currently running in the local Robolectric test environment +let isRobolectric = isJava && !isAndroid +/// True if the system's `Int` type is 32-bit. +let is32BitInteger = Int64(Int.max) == Int64(Int32.max) + var appName: String = "SkipFirebaseDemo" // NOTE: we have @MainActor on SkipFirebaseFirestoreTests to force non-concurrent test execution in order to avoid errors like this: @@ -20,6 +29,7 @@ var appName: String = "SkipFirebaseDemo" // Test Suite 'Selected tests' started at 2024-11-07 12:54:30.612.Test Suite 'skip-firebasePackageTests.xctest' started at 2024-11-07 12:54:30.614.Test Suite 'SkipFirebaseFirestoreTests' started at 2024-11-07 12:54:30.614.Test Case '-[SkipFirebaseFirestoreTests.SkipFirebaseFirestoreTests test_exists_trueForExistentDocument]' started.2024-11-07 12:54:30.823 xctest[15414:52946] *** Assertion failure in void firebase::firestore::core::FirestoreClient::Initialize(const User &, const Settings &)(), /var/folders/4b/7k50gk0j4f5bjk3799wdt8nw0000gn/T/ZipRelease/2024-10-14T13-23-42/project-macos/Pods/FirebaseFirestoreInternal/Firestore/core/src/core/firestore_client.cc:2172024-11-07 12:54:30.900 xctest[15414:52946] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'FIRESTORE INTERNAL ASSERTION FAILED: Failed to open DB: Internal: Failed to open LevelDB database at /Users/runner/Library/Application Support/firestore/SkipFirebaseDemo/skip-firebase-demo/main: LevelDB error: IO error: lock /Users/runner/Library/Application Support/firestore/SkipFirebaseDemo/skip-firebase-demo/main/LOCK: Resource temporarily unavailable (expected created.ok())' +// SKIP INSERT: @org.junit.runner.RunWith(androidx.test.ext.junit.runners.AndroidJUnit4::class) @MainActor final class SkipFirebaseFirestoreTests: XCTestCase { /// App needs to be initialized in setUp and cleaned up in tearDown diff --git a/Tests/SkipFirebaseFirestoreTests/XCSkipTests.swift b/Tests/SkipFirebaseFirestoreTests/XCSkipTests.swift deleted file mode 100644 index 78826e4..0000000 --- a/Tests/SkipFirebaseFirestoreTests/XCSkipTests.swift +++ /dev/null @@ -1,29 +0,0 @@ -// SPDX-License-Identifier: LGPL-3.0-only WITH LGPL-3.0-linking-exception -import Foundation -#if os(macOS) // Skip transpiled tests only run on macOS targets -import SkipTest - -/// This test case will run the transpiled tests for the Skip module. -@available(macOS 13, macCatalyst 16, *) -final class XCSkipTests: XCTestCase, XCGradleHarness { - public func testSkipModule() async throws { - // Run the transpiled JUnit tests for the current test module. - // These tests will be executed locally using Robolectric. - // Connected device or emulator tests can be run by setting the - // `ANDROID_SERIAL` environment variable to an `adb devices` - // ID in the scheme's Run settings. - // - // Note that it isn't currently possible to filter the tests to run. - try await runGradleTests() - } -} -#endif - -/// True when running in a transpiled Java runtime environment -let isJava = ProcessInfo.processInfo.environment["java.io.tmpdir"] != nil -/// True when running within an Android environment (either an emulator or device) -let isAndroid = isJava && ProcessInfo.processInfo.environment["ANDROID_ROOT"] != nil -/// True is the transpiled code is currently running in the local Robolectric test environment -let isRobolectric = isJava && !isAndroid -/// True if the system's `Int` type is 32-bit. -let is32BitInteger = Int64(Int.max) == Int64(Int32.max) diff --git a/Tests/SkipFirebaseFunctionsTests/SkipFirebaseFunctionsTests.swift b/Tests/SkipFirebaseFunctionsTests/SkipFirebaseFunctionsTests.swift index 90c7cf2..3fed759 100644 --- a/Tests/SkipFirebaseFunctionsTests/SkipFirebaseFunctionsTests.swift +++ b/Tests/SkipFirebaseFunctionsTests/SkipFirebaseFunctionsTests.swift @@ -12,6 +12,7 @@ import SkipFirebaseFunctions let logger: Logger = Logger(subsystem: "SkipFirebaseFunctionsTests", category: "Tests") +// SKIP INSERT: @org.junit.runner.RunWith(androidx.test.ext.junit.runners.AndroidJUnit4::class) @MainActor final class SkipFirebaseFunctionsTests: XCTestCase { func testSkipFirebaseFunctionsTests() async throws { if false { diff --git a/Tests/SkipFirebaseFunctionsTests/XCSkipTests.swift b/Tests/SkipFirebaseFunctionsTests/XCSkipTests.swift deleted file mode 100644 index 78826e4..0000000 --- a/Tests/SkipFirebaseFunctionsTests/XCSkipTests.swift +++ /dev/null @@ -1,29 +0,0 @@ -// SPDX-License-Identifier: LGPL-3.0-only WITH LGPL-3.0-linking-exception -import Foundation -#if os(macOS) // Skip transpiled tests only run on macOS targets -import SkipTest - -/// This test case will run the transpiled tests for the Skip module. -@available(macOS 13, macCatalyst 16, *) -final class XCSkipTests: XCTestCase, XCGradleHarness { - public func testSkipModule() async throws { - // Run the transpiled JUnit tests for the current test module. - // These tests will be executed locally using Robolectric. - // Connected device or emulator tests can be run by setting the - // `ANDROID_SERIAL` environment variable to an `adb devices` - // ID in the scheme's Run settings. - // - // Note that it isn't currently possible to filter the tests to run. - try await runGradleTests() - } -} -#endif - -/// True when running in a transpiled Java runtime environment -let isJava = ProcessInfo.processInfo.environment["java.io.tmpdir"] != nil -/// True when running within an Android environment (either an emulator or device) -let isAndroid = isJava && ProcessInfo.processInfo.environment["ANDROID_ROOT"] != nil -/// True is the transpiled code is currently running in the local Robolectric test environment -let isRobolectric = isJava && !isAndroid -/// True if the system's `Int` type is 32-bit. -let is32BitInteger = Int64(Int.max) == Int64(Int32.max) diff --git a/Tests/SkipFirebaseInstallationsTests/SkipFirebaseInstallationsTests.swift b/Tests/SkipFirebaseInstallationsTests/SkipFirebaseInstallationsTests.swift index 37011fa..f2fcd85 100644 --- a/Tests/SkipFirebaseInstallationsTests/SkipFirebaseInstallationsTests.swift +++ b/Tests/SkipFirebaseInstallationsTests/SkipFirebaseInstallationsTests.swift @@ -12,6 +12,7 @@ import SkipFirebaseInstallations let logger: Logger = Logger(subsystem: "SkipFirebaseInstallationsTests", category: "Tests") +// SKIP INSERT: @org.junit.runner.RunWith(androidx.test.ext.junit.runners.AndroidJUnit4::class) @MainActor final class SkipFirebaseInstallationsTests: XCTestCase { func testSkipFirebaseInstallationsTests() async throws { if false { diff --git a/Tests/SkipFirebaseInstallationsTests/XCSkipTests.swift b/Tests/SkipFirebaseInstallationsTests/XCSkipTests.swift deleted file mode 100644 index 78826e4..0000000 --- a/Tests/SkipFirebaseInstallationsTests/XCSkipTests.swift +++ /dev/null @@ -1,29 +0,0 @@ -// SPDX-License-Identifier: LGPL-3.0-only WITH LGPL-3.0-linking-exception -import Foundation -#if os(macOS) // Skip transpiled tests only run on macOS targets -import SkipTest - -/// This test case will run the transpiled tests for the Skip module. -@available(macOS 13, macCatalyst 16, *) -final class XCSkipTests: XCTestCase, XCGradleHarness { - public func testSkipModule() async throws { - // Run the transpiled JUnit tests for the current test module. - // These tests will be executed locally using Robolectric. - // Connected device or emulator tests can be run by setting the - // `ANDROID_SERIAL` environment variable to an `adb devices` - // ID in the scheme's Run settings. - // - // Note that it isn't currently possible to filter the tests to run. - try await runGradleTests() - } -} -#endif - -/// True when running in a transpiled Java runtime environment -let isJava = ProcessInfo.processInfo.environment["java.io.tmpdir"] != nil -/// True when running within an Android environment (either an emulator or device) -let isAndroid = isJava && ProcessInfo.processInfo.environment["ANDROID_ROOT"] != nil -/// True is the transpiled code is currently running in the local Robolectric test environment -let isRobolectric = isJava && !isAndroid -/// True if the system's `Int` type is 32-bit. -let is32BitInteger = Int64(Int.max) == Int64(Int32.max) diff --git a/Tests/SkipFirebaseMessagingTests/SkipFirebaseMessagingTests.swift b/Tests/SkipFirebaseMessagingTests/SkipFirebaseMessagingTests.swift index 2b76334..746262b 100644 --- a/Tests/SkipFirebaseMessagingTests/SkipFirebaseMessagingTests.swift +++ b/Tests/SkipFirebaseMessagingTests/SkipFirebaseMessagingTests.swift @@ -12,6 +12,7 @@ import SkipFirebaseMessaging let logger: Logger = Logger(subsystem: "SkipFirebaseMessagingTests", category: "Tests") +// SKIP INSERT: @org.junit.runner.RunWith(androidx.test.ext.junit.runners.AndroidJUnit4::class) @MainActor final class SkipFirebaseMessagingTests: XCTestCase { func testSkipFirebaseMessagingTests() async throws { if false { diff --git a/Tests/SkipFirebaseMessagingTests/XCSkipTests.swift b/Tests/SkipFirebaseMessagingTests/XCSkipTests.swift deleted file mode 100644 index 78826e4..0000000 --- a/Tests/SkipFirebaseMessagingTests/XCSkipTests.swift +++ /dev/null @@ -1,29 +0,0 @@ -// SPDX-License-Identifier: LGPL-3.0-only WITH LGPL-3.0-linking-exception -import Foundation -#if os(macOS) // Skip transpiled tests only run on macOS targets -import SkipTest - -/// This test case will run the transpiled tests for the Skip module. -@available(macOS 13, macCatalyst 16, *) -final class XCSkipTests: XCTestCase, XCGradleHarness { - public func testSkipModule() async throws { - // Run the transpiled JUnit tests for the current test module. - // These tests will be executed locally using Robolectric. - // Connected device or emulator tests can be run by setting the - // `ANDROID_SERIAL` environment variable to an `adb devices` - // ID in the scheme's Run settings. - // - // Note that it isn't currently possible to filter the tests to run. - try await runGradleTests() - } -} -#endif - -/// True when running in a transpiled Java runtime environment -let isJava = ProcessInfo.processInfo.environment["java.io.tmpdir"] != nil -/// True when running within an Android environment (either an emulator or device) -let isAndroid = isJava && ProcessInfo.processInfo.environment["ANDROID_ROOT"] != nil -/// True is the transpiled code is currently running in the local Robolectric test environment -let isRobolectric = isJava && !isAndroid -/// True if the system's `Int` type is 32-bit. -let is32BitInteger = Int64(Int.max) == Int64(Int32.max) diff --git a/Tests/SkipFirebaseRemoteConfigTests/SkipFirebaseRemoteConfigTests.swift b/Tests/SkipFirebaseRemoteConfigTests/SkipFirebaseRemoteConfigTests.swift index d99017f..66bb857 100644 --- a/Tests/SkipFirebaseRemoteConfigTests/SkipFirebaseRemoteConfigTests.swift +++ b/Tests/SkipFirebaseRemoteConfigTests/SkipFirebaseRemoteConfigTests.swift @@ -12,6 +12,7 @@ import SkipFirebaseRemoteConfig let logger: Logger = Logger(subsystem: "SkipFirebaseRemoteConfigTests", category: "Tests") +// SKIP INSERT: @org.junit.runner.RunWith(androidx.test.ext.junit.runners.AndroidJUnit4::class) @MainActor final class SkipFirebaseRemoteConfigTests: XCTestCase { func testSkipFirebaseRemoteConfigTests() async throws { if false { diff --git a/Tests/SkipFirebaseRemoteConfigTests/XCSkipTests.swift b/Tests/SkipFirebaseRemoteConfigTests/XCSkipTests.swift deleted file mode 100644 index 78826e4..0000000 --- a/Tests/SkipFirebaseRemoteConfigTests/XCSkipTests.swift +++ /dev/null @@ -1,29 +0,0 @@ -// SPDX-License-Identifier: LGPL-3.0-only WITH LGPL-3.0-linking-exception -import Foundation -#if os(macOS) // Skip transpiled tests only run on macOS targets -import SkipTest - -/// This test case will run the transpiled tests for the Skip module. -@available(macOS 13, macCatalyst 16, *) -final class XCSkipTests: XCTestCase, XCGradleHarness { - public func testSkipModule() async throws { - // Run the transpiled JUnit tests for the current test module. - // These tests will be executed locally using Robolectric. - // Connected device or emulator tests can be run by setting the - // `ANDROID_SERIAL` environment variable to an `adb devices` - // ID in the scheme's Run settings. - // - // Note that it isn't currently possible to filter the tests to run. - try await runGradleTests() - } -} -#endif - -/// True when running in a transpiled Java runtime environment -let isJava = ProcessInfo.processInfo.environment["java.io.tmpdir"] != nil -/// True when running within an Android environment (either an emulator or device) -let isAndroid = isJava && ProcessInfo.processInfo.environment["ANDROID_ROOT"] != nil -/// True is the transpiled code is currently running in the local Robolectric test environment -let isRobolectric = isJava && !isAndroid -/// True if the system's `Int` type is 32-bit. -let is32BitInteger = Int64(Int.max) == Int64(Int32.max) diff --git a/Tests/SkipFirebaseStorageTests/SkipFirebaseStorageTests.swift b/Tests/SkipFirebaseStorageTests/SkipFirebaseStorageTests.swift index e1bc25d..0261256 100644 --- a/Tests/SkipFirebaseStorageTests/SkipFirebaseStorageTests.swift +++ b/Tests/SkipFirebaseStorageTests/SkipFirebaseStorageTests.swift @@ -13,6 +13,7 @@ import SkipFirebaseStorage let logger: Logger = Logger(subsystem: "SkipFirebaseStorageTests", category: "Tests") +// SKIP INSERT: @org.junit.runner.RunWith(androidx.test.ext.junit.runners.AndroidJUnit4::class) @MainActor final class SkipFirebaseStorageTests: XCTestCase { func testSkipFirebaseStorageTests() async throws { let metadata = StorageMetadata() diff --git a/Tests/SkipFirebaseStorageTests/XCSkipTests.swift b/Tests/SkipFirebaseStorageTests/XCSkipTests.swift deleted file mode 100644 index 78826e4..0000000 --- a/Tests/SkipFirebaseStorageTests/XCSkipTests.swift +++ /dev/null @@ -1,29 +0,0 @@ -// SPDX-License-Identifier: LGPL-3.0-only WITH LGPL-3.0-linking-exception -import Foundation -#if os(macOS) // Skip transpiled tests only run on macOS targets -import SkipTest - -/// This test case will run the transpiled tests for the Skip module. -@available(macOS 13, macCatalyst 16, *) -final class XCSkipTests: XCTestCase, XCGradleHarness { - public func testSkipModule() async throws { - // Run the transpiled JUnit tests for the current test module. - // These tests will be executed locally using Robolectric. - // Connected device or emulator tests can be run by setting the - // `ANDROID_SERIAL` environment variable to an `adb devices` - // ID in the scheme's Run settings. - // - // Note that it isn't currently possible to filter the tests to run. - try await runGradleTests() - } -} -#endif - -/// True when running in a transpiled Java runtime environment -let isJava = ProcessInfo.processInfo.environment["java.io.tmpdir"] != nil -/// True when running within an Android environment (either an emulator or device) -let isAndroid = isJava && ProcessInfo.processInfo.environment["ANDROID_ROOT"] != nil -/// True is the transpiled code is currently running in the local Robolectric test environment -let isRobolectric = isJava && !isAndroid -/// True if the system's `Int` type is 32-bit. -let is32BitInteger = Int64(Int.max) == Int64(Int32.max)