Skip to main content
-2 votes
0 answers
67 views

The buttons in the navigation bar are not available in the element tree after iOS 26 upgrade of the test phones. The same IPA version, the same XCode version, but different trees on different phones. ...
Erkan Erol's user avatar
  • 1,350
-1 votes
1 answer
83 views

I have following case. NotMyProtocol is from external library. It is not suitable to work with Swift Concurrency so I though some way to implement it and I will pass some proxy into it to forward ...
Marcin Kapusta's user avatar
1 vote
1 answer
91 views

I'm trying to stabilize a flaky UI test that deals with the "Allow Paste" system alert in iOS (see screenshot below). Sometimes it works, sometimes the test hangs or fails. I'd appreciate ...
Asi Givati's user avatar
  • 1,485
-1 votes
1 answer
135 views

In trying to run tests on my app in Swift, I am encountering a problem. I do not have any breakpoints set, and yet, the execution of the tests is being interrupted on the line containing "throw ...
ratbum's user avatar
  • 1,035
6 votes
1 answer
97 views

I've created the following class that's a custom formatter supporting formatting both attributed and standard strings: import Foundation import SwiftUI /// A formatter that converts a distance value (...
Richard Topchii's user avatar
0 votes
0 answers
128 views

I am trying to write a UITest for SwiftUI link that I have set up in the following way: var body: some View { privacyPolicyLink } private func privacyPolicyLink(with url: URL) -> Text { ...
Shawn Frank's user avatar
  • 5,303
1 vote
1 answer
125 views

I'm trying to run unit XCTest on the simulator and I'm getting a signature error. At the same time, the tests on your iPhone device are running correctly. I use the Personal Team for the signature. In ...
monteg's user avatar
  • 23
0 votes
0 answers
35 views

I'm trying to calculate CPU usage of my app while launching using measure block with XCTCPUMetric and XCTest framework in iOS. XCTCPUMetric is giving CPU Time in seconds. I want to calculate CPU usage ...
Sunil's user avatar
  • 1
-1 votes
3 answers
836 views

For my new SwiftUI app I'm looking to add tests. Using Swift Testing I've started to write some unit tests. I'm looking to add UI tests as well. The app relies heavily on network calls to fetch data ...
Pieter's user avatar
  • 275
-1 votes
1 answer
87 views

Started on some unit tests today in Xcode and decided to test my test. Turns out they always pass but not sure why. The following should fail: struct MyUnitTest { @Test func example() throws { ...
Rob Bonner's user avatar
  • 9,420
0 votes
1 answer
72 views

I have a bunch of tests for my macOS app. It is XCTest. Being run the last test turning on whole OS theme to dark, so I need every time to go to the System settings changing it back manually. I did ...
user185929's user avatar
0 votes
0 answers
26 views

Application's simplified logic: struct Gigma30: View { @State private var clientName = "" var body: some View { TextField("Enter", text: $clientName) ....
litbe's user avatar
  • 549
0 votes
0 answers
55 views

I have several tests written for a series of static properties within an extension in Swift, but I can't get SonarQube to mark them as covered. I've tried everything, but even with the following code,...
mhergon's user avatar
  • 1,668
0 votes
0 answers
28 views

Below is my test code based on my research: func test_touchId() throws { let app = XCUIApplication() app.launch() let device = XCUIDevice.shared let selector = ...
litbe's user avatar
  • 549
0 votes
0 answers
78 views

I'm building the unit tests for my project and I encountered a problem about a mock I use for UNUserNotificationCenter. I oversimplified my code as an example: I use a protocol to Mock the add() ...
Jintae's user avatar
  • 53

15 30 50 per page
1
2 3 4 5
135