1

I am trying to perform unit testing in swift.

I defined my test case class like this:

import XCTest
import CoreData
import UIKit

class LazyLoadingCheckTests: XCTestCase {

    var appDelegate : AppDelegate = UIApplication.sharedApplication().delegate as AppDelegate

    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.
        XCTAssert(true, "Pass")
    }
}

Whenever I am trying to execute a test case, the breakpoint is automatically stopping at below line:

enter image description here

It shows below stack trace:

enter image description here

When I try to continue it shows this:

enter image description here

Any clues?

Devarshi
  • 16,440
  • 13
  • 72
  • 125

0 Answers0