     }
 
     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 }),

            try simulators.install(applications: target.applications)
            try simulators.startTest(testLaunchConfigurartion: testLaunchConfigurartion, target: target, reporterRegistry: reporterRegistry)

            for simulator in simulators {
                let testManagerResults = simulator.resourceSink.testManagers.flatMap { $0.waitUntilTestingHasFinished(withTimeout: context.timeout) }
                if testManagerResults.reduce(true, { $0 && $1.didEndSuccessfully }) {


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