import XCTest
@testable import MotionDetector
class Tests: XCTestCase {
var viewController: ViewController!
override func setUp() {
viewController = viewController()
}
func testHiddenButton() throws {
_ = self.viewController.view // To call viewDidLoad
viewController.loadViewIfNeeded()
// or
viewController.beginAppearanceTransition(true, animated: false) // viewWillAppear
viewController.endAppearanceTransition() // viewWillDisappear
...
}
}