Commit dec6202c authored by David Owens II's avatar David Owens II

Merge pull request #57 from AnarchyTools/testExecutable_diagnostic

Improve diagnostic for missing XCTest test-executable
parents ea762196 1ef9795a
Pipeline #1098 passed with stage
......@@ -15,9 +15,13 @@ import atpkg
import Foundation
class XCTestRun : Tool {
enum Option: String {
case TestExecutable = "test-executable"
func run(task: Task) {
guard let testExecutable = task["test-executable"]?.string else {
fatalError("No testExecutable for XCTestRun")
guard let testExecutable = task[Option.TestExecutable.rawValue]?.string else {
fatalError("No \(task[Option.TestExecutable.rawValue]) for XCTestRun")
#if os(OSX)
var workingDirectory = "/tmp/XXXXXXXXXXX"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment