Skip to content

Instantly share code, notes, and snippets.

View kjoe07's full-sized avatar

Yoel Jimenez del Valle kjoe07

View GitHub Profile
import XCTest
@testable import YourAppTargetname
class SideMenuViewControllerTest: XCTestCase {
var viewControllerUnderTest: SideMenuViewController!
override func setUp() {
super.setUp()
class ViewControllerTest: XCTestCase {
var systemUnderTest: ViewController!
override func setUp() {
super.setUp()
//get the storyboard the ViewController under test is inside
let storyboard: UIStoryboard = UIStoryboard(name: "Main_iPhone", bundle: nil)
// example of unit test for model initialization
// TEST CODE
import XCTest
@testable import yourmodule
class PlaceTest: XCTestCase {