import XCTest
@testable import CommandLine

class CommandLineTests: XCTestCase {

    func testRunCommand() {
        let runExpectation = expectation(description: "Run <ls> to see files in current directory.")

        let commandLine = CommandLine()
        let command = "/usr/bin/env"
        let arguments = [ "ls" ]
        let result = commandLine.execute(command, with: arguments)

        switch result {
        case .output(let output):
            print(output)
            runExpectation.fulfill()
        case .error(let message):
            print("Error: \(message)")
        }
    }

    static var allTests : [(String, (CommandLineTests) -> () throws -> Void)] {
        return [
            ("testRunCommand", testRunCommand),
        ]
    }

}

import XCTest
@testable import CommandLine

class CommandLineTests: XCTestCase {

    func testRunCommand() {
        let runExpectation = expectation(description: "Run <ls> to see files in current directory.")

        let commandLine = CommandLine()
        let command = "/usr/bin/env"
        let arguments = [ "ls" ]
        let result = commandLine.execute(command, with: arguments)

        switch result {
        case .output(let output):
            print(output)
            runExpectation.fulfill()
        case .error(let message):
            print("Error: \(message)")
        }
    }

    static var allTests : [(String, (CommandLineTests) -> () throws -> Void)] {
        return [
            ("testRunCommand", testRunCommand)
        ]
    }

}

--- 
+++ 
@@ -22,7 +22,7 @@
 
     static var allTests : [(String, (CommandLineTests) -> () throws -> Void)] {
         return [
-            ("testRunCommand", testRunCommand)
+            ("testRunCommand", testRunCommand),
         ]
     }
 
Reset summarising test dictionary for Linux
