Skip to content

Instantly share code, notes, and snippets.

@hoang-tran
Created July 30, 2016 02:00
Show Gist options
  • Select an option

  • Save hoang-tran/5e8c1ad8b18ffaa2d9fa261e7007fcdf to your computer and use it in GitHub Desktop.

Select an option

Save hoang-tran/5e8c1ad8b18ffaa2d9fa261e7007fcdf to your computer and use it in GitHub Desktop.
import XCTest
class MyNativeTests: XCTestCase {
override func setUp() {
super.setUp()
// Put setup code here. This method is called before the invocation of each test method in the class.
}
override func tearDown() {
// Put teardown code here. This method is called after the invocation of each test method in the class.
super.tearDown()
}
func testExample() {
// This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct results.
}
func testPerformanceExample() {
// This is an example of a performance test case.
self.measureBlock {
// Put the code you want to measure the time of here.
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment