Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
stephencelis committed Sep 11, 2024
1 parent 5eeab43 commit 5d8af43
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Sources/IssueReporting/IsTesting.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
Expand Down

0 comments on commit 5d8af43

Please sign in to comment.