Skip to content

Instantly share code, notes, and snippets.

@gtranchedone
Last active February 20, 2017 17:53
Show Gist options
  • Save gtranchedone/c7efa24fdcafbf07cf05634433e4a1e4 to your computer and use it in GitHub Desktop.
Save gtranchedone/c7efa24fdcafbf07cf05634433e4a1e4 to your computer and use it in GitHub Desktop.
Testing Server Side Swift Apps - LinuxMain
import XCTest
@testable import AppTests
XCTMain([
testCase(PostsControllerTests.allTests),
])
import XCTest
@testable import App
class PostsControllerTests: XCTestCase {
static var allTests : [(String, (PostsControllerTests) -> () throws -> Void)] {
return [
("testExample", testExample),
]
}
func testExample() {
XCTAssertTrue(true)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment