Questions tagged [xctestexpectation]

In Xcode 6, the XCTestExpectation class is a built-in support for asynchronous testing.

In Xcode 6, the XCTestExpectation class is a built-in support for asynchronous testing.

Useful link

62 questions
0
votes
1 answer

Is there a way to inject test data into a XCTestCase?

I'm trying write some simple test cases for a project I am working on. I have a simple method that takes an input and returns true/false depending on the outcome of an operation on that input. base case unit test right? In java, I can use a…
-1
votes
1 answer

API violation - multiple calls made to -[XCTestExpectation fulfill], How can i solve this problem

I'm writing unit test for my codes which using Combine framework i have a async operation, so i use expectation(descrption:) to wait async operation this is my code example class MyViewModel { private var someOtherSubject:…
PrepareFor
  • 2,448
  • 6
  • 22
  • 36
1 2 3 4
5