I am trying to run test case for Failure response . I have an empty json file into project and named it FailureResponse . This file is empty . I tryin ...
I am trying to run test case for Failure response . I have an empty json file into project and named it FailureResponse . This file is empty . I tryin ...
I am trying to run test cases of custom framework . When I tried to run on physical device I got below error mentioned below. ...
In my KMM project, I have a method to invoke Objective-C predicateWithFormat method inside it. And when I try to cast the passing string text to NSStr ...
From Apple's XCTest doc regarding setUp and tearDown it said to perform async code in tearDown() async throws method. And in my case, I create some t ...
Consider this simple test case When I run this on an actual device, the test passes. However, when I run it on a simulator, it hangs and never comp ...
Apple Concurrency framework is lacking support for async version of XCTAssertThrowsError. I have created a public function as a substitute for it. fu ...
UIApplication.shared.isIdleTimerDisabled should be true when screen is not active & false when screen is active. Always getting false value even ...
I've been experiencing some failures in tests and I've worked out they appear to be caused by XCTest expectation waits suspending the Task instances. ...
I tried writing unit test for requestAuthorization by generating a mock for HKHealthStore. But I got an error. Asynchronous wait failed: Exceeded time ...
I have created a custom framework and inside that all the logs are recorded when we initialise the framework. Now I have integrate that framework ins ...
I have a WKWebView to loads a basic url request. Now I want to write a unit test to verify webview correctly load the request. I have followed this ...
I've tried to use XCTKeyPathExpectation in an async environment and could not get it to work. The error I'm getting is confusing me a lot. Because the ...
I have function for scrolling used in my UiTests. Here it is When I use it on iOS 15 simulators it works great. But after downloading Xcode 14 and ...
In the Apple overview page of Xcode Cloud, I can see this image of the result of a test executed with Xcode Cloud: The attachements of the test are ...
I have some XCUITests that need to tap annotations on a map, when I run the tests in my mac everything works fine, but when they run on CI the map doe ...
Sample Project This is a sample project that showing the issue. It's storyboard based, but method of building interface doesn't matter. It's UIViewCo ...
I need to check if an app with a particular bundleIdentifier is installed on the active device or Simulator and I need to do this from an XC UI test. ...
I want to test whether an async function doesn't succeed in a certain situation but can't figure out how to do that. Previously with completion blocks ...
I have been trying to write Unit test cases in swift for making an API call but being new in this am not able to figure out how do I write the Unit te ...
while using a MockTableView this code still not calling reloadData() from the mock, please i wanna know what is wrong here. following this book: Test ...