diff --git a/Sources/IssueReporting/IsTesting.swift b/Sources/IssueReporting/IsTesting.swift index 756c87e..e709534 100644 --- a/Sources/IssueReporting/IsTesting.swift +++ b/Sources/IssueReporting/IsTesting.swift @@ -30,9 +30,13 @@ if environment.keys.contains("XCTestBundlePath") { return true } if environment.keys.contains("XCTestConfigurationFilePath") { return true } if environment.keys.contains("XCTestSessionIdentifier") { return true } + return arguments.contains { argument in let path = URL(fileURLWithPath: argument) - return path.lastPathComponent == "xctest" || path.pathExtension == "xctest" + return path.lastPathComponent == "swiftpm-testing-helper" + || argument == "--testing-library" + || path.lastPathComponent == "xctest" + || path.pathExtension == "xctest" } } }