     }
 
     func run(control: FBSimulatorControl) throws {
-        testRun = try FBXCTestRun.withTestRunFile(atPath: context.testRun.path).build()
+        let testRun = try FBXCTestRun.withTestRunFile(atPath: context.testRun.path).build()
 
         try context.outputManager.reset(
             targets: testRun.targets.map({ $0.name }),

        let crashes: [FBDiagnostic]
    }

    private let context: Context
    private let reporterRegistry: ReporterRegistry
    private var simulators: [FBSimulator] = []
    private var testRun: FBXCTestRun!

    init(context: Context) {
        self.context = context


    func abort() {
        for simulator in simulators {
            for bundleID in bundleIDS {
                do {
                    try simulator.killApplication(withBundleID: bundleID)
                }
                catch {
                    context.consoleOutput.write(line: "\(error)")
