Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Sources/SkipTest/XCGradleHarness.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ extension XCGradleHarness where Self : XCTestCase {
/// - SeeAlso: https://docs.gradle.org/current/userguide/java_testing.html#test_filtering
///
/// When the `SKIP_TEST_FILTER` environment variable is set (e.g. by `skip test --filter`), it must be one pattern per line; each line is passed to Gradle as `--tests`.
nonisolated(nonsending)
public func runGradleTests(device: String? = ProcessInfo.processInfo.environment["ANDROID_SERIAL"], file: StaticString = #file, line: UInt = #line) async throws {
do {
#if DEBUG
Expand Down Expand Up @@ -59,8 +60,8 @@ extension XCGradleHarness where Self : XCTestCase {
/// - moduleSuffix: the expected module name for automatic test determination
/// - sourcePath: the full path to the test case call site, which is used to determine the package root
@available(macOS 13, macCatalyst 16, iOS 16, tvOS 16, watchOS 8, *)
nonisolated(nonsending)
func invokeGradle(actions: [String], arguments: [String] = [], info: Bool = false, deviceID: String? = nil, testFilters: [String] = [], moduleName: String? = nil, maxMemory: UInt64? = ProcessInfo.processInfo.physicalMemory, fromSourceFileRelativeToPackageRoot sourcePath: StaticString? = #file) async throws {

var actions = actions
let isTestAction = actions.contains(where: { $0.hasPrefix("test") || $0.hasPrefix("connected") })

Expand Down
Loading