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 ...
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 ...
Button Shapes (the accessibility feature) on iOS can be enabled and disabled from the setting app on the simulator. But what if we want to enable and ...
How do we test SwiftUI views? Can we test them in Unit testing? If so we don't have proper apis to get the view hierarchy or the required set of obje ...
I try to be used to use XCTest on Xcode. but my company app that is gonna be tested, has to receive token or userInfo or some datas from server first ...
I have found this question Can I run an XCTest suite multiple times? Which basically ask how to run XCTestCase suite multiple times. However, I would ...
I think I probably have some blind spot. The following code in test target actually works that I thought it should not: (MyHelper is private already, ...
I am trying to add UI tests to a SwiftUI project. I have a list, which contains views - those then contain a number of views. I cannot seem to acces ...
How to write XCTestCase for below code Another class which I'm unable to test I'm new to unit test and was wondering how can I test aove classes ...
I wondered if there were architectural patterns, like MVP, MVVM for unit tests in swift. I know about AAA pattern, but it breaks the logic inside the ...
I have created a series of UI Tests that run fine on a device but when using a Simulator, I cannot tap alert view buttons. Instead, it crashes with ...
I have an enum like following- when I do equality check, it works - but when I try to write test case for it like - I get compile time error ...
I'm trying to access the button click in the Unit test class. I'm not able to perform action. Button AppCode:- Unit Class Code:- Error:- No ...
I'm trying to access the firebase phone authenticate delegate in the XCTest class. Code:- Error:- Instance member 'verifyPhoneNumber' cannot b ...
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 ...
Is there a way to get the ID of the Simulator that is generated in the Library/Developer/XCTestDevices folder? When I do: This gives me an ID but ...
I want to write a unit test case for the method which is one of the delegate methods in the view controller. I created a unit test case class for the ...
We have three states.How can we test(with unit tests) our class which generates random state every 5 seconds, and which can not generate the same stat ...
I have recently started work on the SwiftUI framework, I'm writing UI Test Cases using XCTest. In the XCTestCase class, I tried the following code ...
I am using the standard XCTestCase class to implement and trigger the unit tests together with the host ios application. Is it possible to pass a piec ...
In the implementation file (.mm) I have a function that calls different APIs depending on the value of a boolean isTrue which is set in other APIs ...