#xctest โ Public Fediverse posts
Live and recent posts from across the Fediverse tagged #xctest, aggregated by home.social.
-
Swift Testing Framework https://wesleydegroot.nl/blog/swift-testing-framework #Swift #Testing #XCTest
-
Swift Testing Framework https://wesleydegroot.nl/blog/swift-testing-framework #Swift #Testing #XCTest
-
Interop between XCTest and Swift Testing? In the economy? It's more likely than you think.
Legitimately, I'm really excited for this. This'll enable much more consistent set of tooling that can easily be used in Swift Testing and in XCTest. It'll also make migrating from XCTest to Swift Testing much more simpler and much safer.
Go leave feedback at https://forums.swift.org/t/st-0021-targeted-interoperability-between-swift-testing-and-xctest/84965
-
Interop between XCTest and Swift Testing? In the economy? It's more likely than you think.
Legitimately, I'm really excited for this. This'll enable much more consistent set of tooling that can easily be used in Swift Testing and in XCTest. It'll also make migrating from XCTest to Swift Testing much more simpler and much safer.
Go leave feedback at https://forums.swift.org/t/st-0021-targeted-interoperability-between-swift-testing-and-xctest/84965
-
Also in related news: I updated my UI testing helpers library with a few macOS specific additions that I needed to test this application.
-
Also in related news: I updated my UI testing helpers library with a few macOS specific additions that I needed to test this application.
-
Rafinad: ัะฐั ะฐั ะดะปั UI-ัะตััะธัะพะฒะฐะฝะธั iOS-ะฟัะธะปะพะถะตะฝะธะน
ะั ะฒ hh ะพัะตะฝั ะปัะฑะธะผ UI-ัะตััั, ะธะผะธ ะฟะพะบััะฒะฐะตััั ะฟัะฐะบัะธัะตัะบะธ ะฒัั ััะฝะบัะธะพะฝะฐะปัะฝะพััั ะฝะฐัะธั ะฟัะธะปะพะถะตะฝะธะน, ะธ ะดะฐะถะต backend-ัะฐะทัะฐะฑะพััะธะบะธ ะฟัะพะณะพะฝััั ัะตััั ะผะพะฑะธะปัะฝัั ะฟะปะฐััะพัะผ ะฟะตัะตะด ัะฐะทะฒะตัััะฒะฐะฝะธะตะผ ัะฒะพะธั ัะธั. ะะดะฝะฐะบะพ ะฝะฐัะธ ะผะตั ะฐะฝะธะทะผั UI-ัะตััะธัะพะฒะฐะฝะธั ัะฐะทัะฐะฑะฐััะฒะฐะปะธัั ะฑะพะปะตะต 8 ะปะตั ะฝะฐะทะฐะด ะธ ั ัะตั ะฟะพั ะฟะพััะธ ะฝะต ะธะทะผะตะฝะธะปะธัั. ะัะพ-ัะพ ัะบะฐะถะตั, ััะพ ััะฐััะต ัะตัะตะฝะธั ะฟัะพัะปะธ ะฟัะพะฒะตัะบั ะฒัะตะผะตะฝะตะผ ะธ ััะพ ยซัะฐะฑะพัะฐะตั โ ะฝะต ััะพะณะฐะนยป... ะะพะทะผะพะถะฝะพ, ะธ ัะฐะบ. ะะพ ัะตะนัะฐั ะผั ะฒะฝะตะดััะตะผ ะฝะพะฒัั ะดะธะทะฐะนะฝ-ัะธััะตะผั, ะฐ ะฝะพะฒัะต ะบะพะผะฟะพะฝะตะฝัั ััะตะฑััั ะฐะดะฐะฟัะฐัะธะธ ะฒัะตั ัะตััะพะฒ โ ะฝะต ะปัััะตะต ะปะธ ะฒัะตะผั ะดะปั ะฟะตัะตะผะตะฝ? ะะพััะพะผั ะผั ะฟะตัะตัะผะพััะตะปะธ ะฝะฐัะธ ะฟะพะดั ะพะดั ะบ UI-ัะตััะธัะพะฒะฐะฝะธั ะธ ัะตะฟะตัั ะณะพัะพะฒั ะฟะพะดะตะปะธัััั ะฝะฐัะฐะฑะพัะบะฐะผะธ ั ัะพะพะฑัะตััะฒะพะผ ะฒ ะฒะธะดะต open-source ะฟัะพะตะบัะฐ โ Rafinad . ะ ััะพะน ััะฐััะต ัะฐััะบะฐะถะตะผ, ััะพ ะพะฝ ัะผะตะตั ะธ ะบะฐะบ ะธะผ ะฟะพะปัะทะพะฒะฐัััั.
https://habr.com/ru/companies/hh/articles/910380/
#ios #uiัะตััั #uiัะตััะธัะพะฒะฐะฝะธะต #ัะตััะธัะพะฒะฐะฝะธะต #swift #swiftui #uikit #xctest #xcuitest #dsl
-
Latest little hobby rabbit hole: automated iOS UI testing. It's always difficult for me to wrap my head around UI testing tools and frameworks, but I'm getting there! The least useful manual test cases for my app Playway are now automated. More useful ones to follow, hopefully. A good side effect is that I took the time to make sure all (OK, most) views have good accessibility settings.
-
I open sourced a new Swift Package.
๐ซ๐๐จ๐๐ง๐ฒ๐๐๐๐ฒ๐น๐ฝ๐ฒ๐ฟ
๐๐ฒ๐๐ธ๐๐๐๐๐ท๐๐๐๐๐ ๐๐๐๐๐ ๐ข๐๐ ๐ ๐๐๐๐๐๐ ๐๐ธ ๐๐๐๐๐ ๐ ๐๐๐๐๐ ๐๐ ๐๐๐๐๐ธ. ๐ธ๐ ๐๐๐๐๐๐๐๐ ๐ ๐๐๐ ๐๐ ๐๐๐๐๐๐ ๐๐ก๐๐๐๐๐๐๐๐ ๐๐ ๐๐ฒ๐๐ธ๐ฐ๐๐๐๐๐๐๐๐๐๐, ๐๐ฒ๐๐ธ๐ด๐๐๐๐๐๐ ๐๐๐ ๐๐ฒ๐๐ธ๐ด๐๐๐๐๐๐๐๐๐๐๐ข ๐๐ ๐๐๐๐ ๐ข๐๐๐ ๐๐๐๐๐ ๐๐๐๐ ๐๐๐๐๐๐๐๐ ๐๐๐ ๐๐๐๐๐๐ ๐๐ ๐๐๐๐๐๐๐๐.https://github.com/0xWDG/XCUITestHelper
#Swiftlang #XCTest #UITesting #Xcode #XCTestCase #SwiftUI #iOS #macOS #oss
-
I open sourced a new Swift Package.
๐ซ๐๐จ๐๐ง๐ฒ๐๐๐๐ฒ๐น๐ฝ๐ฒ๐ฟ
๐๐ฒ๐๐ธ๐๐๐๐๐ท๐๐๐๐๐ ๐๐๐๐๐ ๐ข๐๐ ๐ ๐๐๐๐๐๐ ๐๐ธ ๐๐๐๐๐ ๐ ๐๐๐๐๐ ๐๐ ๐๐๐๐๐ธ. ๐ธ๐ ๐๐๐๐๐๐๐๐ ๐ ๐๐๐ ๐๐ ๐๐๐๐๐๐ ๐๐ก๐๐๐๐๐๐๐๐ ๐๐ ๐๐ฒ๐๐ธ๐ฐ๐๐๐๐๐๐๐๐๐๐, ๐๐ฒ๐๐ธ๐ด๐๐๐๐๐๐ ๐๐๐ ๐๐ฒ๐๐ธ๐ด๐๐๐๐๐๐๐๐๐๐๐ข ๐๐ ๐๐๐๐ ๐ข๐๐๐ ๐๐๐๐๐ ๐๐๐๐ ๐๐๐๐๐๐๐๐ ๐๐๐ ๐๐๐๐๐๐ ๐๐ ๐๐๐๐๐๐๐๐.https://github.com/0xWDG/XCUITestHelper
#Swiftlang #XCTest #UITesting #Xcode #XCTestCase #SwiftUI #iOS #macOS #oss
-
Hmm... Apparently one cannot create an #XCTest target for a command line app in #Xcode. Why does #Apple hate the command line? #swift
https://stackoverflow.com/questions/34097287/xcode-7-cant-create-a-swift-command-line-tool-with-a-unit-test-target -
Hmm... Apparently one cannot create an #XCTest target for a command line app in #Xcode. Why does #Apple hate the command line? #swift
https://stackoverflow.com/questions/34097287/xcode-7-cant-create-a-swift-command-line-tool-with-a-unit-test-target -
ะะฒะตะดะตะฝะธะต ะฒ ัะตััะธัะพะฒะฐะฝะธะต ะฝะฐ Swift Testing
XCTest ัะฒะปัะตััั ะพัะฝะพะฒะฝัะผ ะธะฝััััะผะตะฝัะพะผ ะดะปั ัะตััะธัะพะฒะฐะฝะธั ะฒ Swift ะธ ัะธัะพะบะพ ะธัะฟะพะปัะทัะตััั ัะฐะทัะฐะฑะพััะธะบะฐะผะธ. ะะดะฝะฐะบะพ, ะฝะพะฒะฐั ะฑะธะฑะปะธะพัะตะบะฐ Testing ะฟัะตะดะปะฐะณะฐะตั ะดะพะฟะพะปะฝะธัะตะปัะฝัะต ะฒะพะทะผะพะถะฝะพััะธ ะธ ัะธะฝัะฐะบัะธัะตัะบะธะน ัะฐั ะฐั, ะบะพัะพััะน ะดะตะปะฐะตั ะฟัะพัะตัั ัะตััะธัะพะฒะฐะฝะธั ะตัะต ะฑะพะปะตะต ัะดะพะฑะฝัะผ ะธ ะผะพัะฝัะผ. ะ ะดะฐะฝะฝะพะน ััะฐััะต ะผั ัะฐััะผะพััะธะผ ะพัะฝะพะฒะฝัะต ะฐัะฟะตะบัั ัะตััะธัะพะฒะฐะฝะธั ะฝะฐ Swift, ะฒะบะปััะฐั ะธัะฟะพะปัะทะพะฒะฐะฝะธะต ะฑะธะฑะปะธะพัะตะบะธ Testing.
https://habr.com/ru/articles/823396/
#swift #testing #swift__ัะฐะทัะฐะฑะพัะบะฐ #swift_development #xcode #xctest
-
Huh. Why does Swift's Mirror(reflecting:) only list properties, not methods?
Is there an alternative way to get a list of all methods? How does XCTest do it when I define a testXX method?
-
Huh. Why does Swift's Mirror(reflecting:) only list properties, not methods?
Is there an alternative way to get a list of all methods? How does XCTest do it when I define a testXX method?
-
Quick tip for running specific tests when Xcode stops showing the run test buttons in the text gutter https://paul-samuels.com/blog/2023/10/24/missing-xcode-run-test-buttons/
-
Stay Ahead of Bugs: How XCTests Can Keep Your iOS App Leak-Free!
Detect memory leaks in your app using addTeardownBlock and a custom XCTestCase extension.
#Swift #XCTest
https://qualitycoding.org/swift-memory-leak-detection-xctest/ -
Stay Ahead of Bugs: How XCTests Can Keep Your iOS App Leak-Free!
Detect memory leaks in your app using addTeardownBlock and a custom XCTestCase extension.
#Swift #XCTest
https://qualitycoding.org/swift-memory-leak-detection-xctest/ -
Since XCTest does not support async expressions in its assert functions I released SwiftAsyncAsserts Swift package to fill that gap.
Write more readable testing code for your async type interfaces in Swift.
-
Since XCTest does not support async expressions in its assert functions I released SwiftAsyncAsserts Swift package to fill that gap.
Write more readable testing code for your async type interfaces in Swift.
https://github.com/angu-software/SwiftAsyncAssert
#swift #xctest #asyncawait #unittest #swiftdev #iosdev #macdev
-
#Swift #SwiftUI #XCTest #SnapshotTesting
Iโm having trouble with Pointfreecoโs snapshot testing. Tests run and complete fine, but thereโs a delay at the end of the test process. I canโt figure out where itโs coming from or what causes it. Reduced to a very simple fully reproducible example in my environment.
Anyone have any ideas?
https://github.com/pointfreeco/swift-snapshot-testing/issues/752
-
TIL about https://developer.apple.com/documentation/xctest/xctestcase/3042655-expectation:
expectation(
forNotification notificationName: NSNotification.Name,
object objectToObserve: Any?,
notificationCenter: NotificationCenter,
handler: XCTNSNotificationExpectation.Handler? = nil
)Extremely convenient for unit testing Notifications being sent. Nice!
-
TIL about https://developer.apple.com/documentation/xctest/xctestcase/3042655-expectation:
expectation(
forNotification notificationName: NSNotification.Name,
object objectToObserve: Any?,
notificationCenter: NotificationCenter,
handler: XCTNSNotificationExpectation.Handler? = nil
)Extremely convenient for unit testing Notifications being sent. Nice!
-
โThe best time to build a test was before the first commit. The next best time is now.โ โ Proverbious the Commitor, probably
https://www.whynotestflight.com/excuses/hello-usd-part-13-test-test-test/
-
โThe best time to build a test was before the first commit. The next best time is now.โ โ Proverbious the Commitor, probably
https://www.whynotestflight.com/excuses/hello-usd-part-13-test-test-test/
-
Anyone knows how to in iOS UI tests access text field present in navigation bar?
I have editable title set using View.navigationTitle(_:) function and want to write UI test for it. But I don't see anything useful in the hierarchy when it is visibleโฆ
-
Anyone knows how to in iOS UI tests access text field present in navigation bar?
I have editable title set using View.navigationTitle(_:) function and want to write UI test for it. But I don't see anything useful in the hierarchy when it is visibleโฆ
-
#Swift #XCTest #SnapshotTesting #XcodeCloud
Point-Free has an excellent snapshot-testing library that lets you unit test your view snapshots (screenshots). It does not work with Xcode Cloud out of the box, because test runner environment in Xcode Cloud does not have access to the source repository, which snapshot-testing assumes by default.
Hereโs my solution for making snapshot-testing work correctly with Xcode Cloud. https://jaanus.com/snapshot-testing-xcode-cloud/
-
#Swift enumerations: How to write #XCTest assertions to verify them? What about associated values? https://qualitycoding.org/unit-test-enumerations-swift/
-
#Swift enumerations: How to write #XCTest assertions to verify them? What about associated values? https://qualitycoding.org/unit-test-enumerations-swift/
-
Cool trick I learned for UI tests in Xcode. You can set "TZ" launch environment value to force the app to use provided time zone. Useful when testing layout that displays formatted dates.
https://developer.apple.com/forums/thread/86951?answerId=263395022#263395022
-
Cool trick I learned for UI tests in Xcode. You can set "TZ" launch environment value to force the app to use provided time zone. Useful when testing layout that displays formatted dates.
https://developer.apple.com/forums/thread/86951?answerId=263395022#263395022
-
#Swift enumerations: How to write #XCTest assertions to verify them? What about associated values? https://qualitycoding.org/unit-test-enumerations-swift/
-
#Swift enumerations: How to write #XCTest assertions to verify them? What about associated values? https://qualitycoding.org/unit-test-enumerations-swift/
-
#Swift enumerations: How to write #XCTest assertions to verify them? What about associated values? https://qualitycoding.org/unit-test-enumerations-swift/
-
#Swift enumerations: How to write #XCTest assertions to verify them? What about associated values? https://qualitycoding.org/unit-test-enumerations-swift/
-
In #XCTest, I declare all test methods as throws because it makes life easier, and there's no penalty. Can I do the same with MainActor at the class level? They're already running on the main thread, so this seems similar.
-
In #XCTest, I declare all test methods as throws because it makes life easier, and there's no penalty. Can I do the same with MainActor at the class level? They're already running on the main thread, so this seems similar.
-
#Swift enumerations: How to write #XCTest assertions to verify them? How do we test their associated values? Can we avoid overspecified tests? https://qualitycoding.org/unit-test-enumerations-swift/
-
#Swift enumerations: How to write #XCTest assertions to verify them? How do we test their associated values? Can we avoid overspecified tests? https://qualitycoding.org/unit-test-enumerations-swift/
-
I donโt know if Iโm the person to make it, but I feel like a #Swift package to make doing all of the normal testing things #XCTest doesnโt give you would be pretty amazing.
The equivalent would be how #Rails uses Minitest (by default) but then also adds a bunch of stuff of its own to make testing web apps easy.
-
I donโt know if Iโm the person to make it, but I feel like a #Swift package to make doing all of the normal testing things #XCTest doesnโt give you would be pretty amazing.
The equivalent would be how #Rails uses Minitest (by default) but then also adds a bunch of stuff of its own to make testing web apps easy.
-
FB11933090: Provide option to follow Test Plan order in initializing Test Targets irrespective of "Run in Parallel" status
-
FB11933090: Provide option to follow Test Plan order in initializing Test Targets irrespective of "Run in Parallel" status
-
If there's anyone out here who uses the #KIF framework to run UI tests via #XCTest and is using it with #SwiftUI I'd love your input on this issue, of a control that is tappable in practice, and via the Accessibility Inspector, but not in my KIF test: https://github.com/kif-framework/KIF/issues/1271
-
CW: Unit Testing
Sure wish there was a decent way to create parameterized #XCTest unit tests. I've got an array of test data, want to run the same method on each of about ten items and assert that a particular outcome occurs.
Found this approach but too much of a kludge for me:
https://kazaimazai.com/parametrized-xctest-swift/Not sure whether to just duplicate ten tests, one for each test data item, or to put a for...in in an XCTest and deal with the lack of specificity for failures. Hgn. #Swift #UnitTesting