home.social

#xctest โ€” Public Fediverse posts

Live and recent posts from across the Fediverse tagged #xctest, aggregated by home.social.

fetched live
  1. 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 forums.swift.org/t/st-0021-tar

    #SwiftLang #XCTest #SwiftTesting #UnitTesting

  2. 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 forums.swift.org/t/st-0021-tar

    #SwiftLang #XCTest #SwiftTesting #UnitTesting

  3. Also in related news: I updated my UI testing helpers library with a few macOS specific additions that I needed to test this application.

    github.com/Tunous/XCAppTest

    #Swift #XCTest #XCUITest

  4. Also in related news: I updated my UI testing helpers library with a few macOS specific additions that I needed to test this application.

    github.com/Tunous/XCAppTest

    #Swift #XCTest #XCUITest

  5. Rafinad: ัะฐั…ะฐั€ ะดะปั UI-ั‚ะตัั‚ะธั€ะพะฒะฐะฝะธั iOS-ะฟั€ะธะปะพะถะตะฝะธะน

    ะœั‹ ะฒ hh ะพั‡ะตะฝัŒ ะปัŽะฑะธะผ UI-ั‚ะตัั‚ั‹, ะธะผะธ ะฟะพะบั€ั‹ะฒะฐะตั‚ัั ะฟั€ะฐะบั‚ะธั‡ะตัะบะธ ะฒัั ั„ัƒะฝะบั†ะธะพะฝะฐะปัŒะฝะพัั‚ัŒ ะฝะฐัˆะธั… ะฟั€ะธะปะพะถะตะฝะธะน, ะธ ะดะฐะถะต backend-ั€ะฐะทั€ะฐะฑะพั‚ั‡ะธะบะธ ะฟั€ะพะณะพะฝััŽั‚ ั‚ะตัั‚ั‹ ะผะพะฑะธะปัŒะฝั‹ั… ะฟะปะฐั‚ั„ะพั€ะผ ะฟะตั€ะตะด ั€ะฐะทะฒะตั€ั‚ั‹ะฒะฐะฝะธะตะผ ัะฒะพะธั… ั„ะธั‡. ะžะดะฝะฐะบะพ ะฝะฐัˆะธ ะผะตั…ะฐะฝะธะทะผั‹ UI-ั‚ะตัั‚ะธั€ะพะฒะฐะฝะธั ั€ะฐะทั€ะฐะฑะฐั‚ั‹ะฒะฐะปะธััŒ ะฑะพะปะตะต 8 ะปะตั‚ ะฝะฐะทะฐะด ะธ ั ั‚ะตั… ะฟะพั€ ะฟะพั‡ั‚ะธ ะฝะต ะธะทะผะตะฝะธะปะธััŒ. ะšั‚ะพ-ั‚ะพ ัะบะฐะถะตั‚, ั‡ั‚ะพ ัั‚ะฐั€ั‹ะต ั€ะตัˆะตะฝะธั ะฟั€ะพัˆะปะธ ะฟั€ะพะฒะตั€ะบัƒ ะฒั€ะตะผะตะฝะตะผ ะธ ั‡ั‚ะพ ยซั€ะฐะฑะพั‚ะฐะตั‚ โ€” ะฝะต ั‚ั€ะพะณะฐะนยป... ะ’ะพะทะผะพะถะฝะพ, ะธ ั‚ะฐะบ. ะะพ ัะตะนั‡ะฐั ะผั‹ ะฒะฝะตะดั€ัะตะผ ะฝะพะฒัƒัŽ ะดะธะทะฐะนะฝ-ัะธัั‚ะตะผัƒ, ะฐ ะฝะพะฒั‹ะต ะบะพะผะฟะพะฝะตะฝั‚ั‹ ั‚ั€ะตะฑัƒัŽั‚ ะฐะดะฐะฟั‚ะฐั†ะธะธ ะฒัะตั… ั‚ะตัั‚ะพะฒ โ€” ะฝะต ะปัƒั‡ัˆะตะต ะปะธ ะฒั€ะตะผั ะดะปั ะฟะตั€ะตะผะตะฝ? ะŸะพัั‚ะพะผัƒ ะผั‹ ะฟะตั€ะตัะผะพั‚ั€ะตะปะธ ะฝะฐัˆะธ ะฟะพะดั…ะพะดั‹ ะบ UI-ั‚ะตัั‚ะธั€ะพะฒะฐะฝะธัŽ ะธ ั‚ะตะฟะตั€ัŒ ะณะพั‚ะพะฒั‹ ะฟะพะดะตะปะธั‚ัŒัั ะฝะฐั€ะฐะฑะพั‚ะบะฐะผะธ ั ัะพะพะฑั‰ะตัั‚ะฒะพะผ ะฒ ะฒะธะดะต open-source ะฟั€ะพะตะบั‚ะฐ โ€” Rafinad . ะ’ ัั‚ะพะน ัั‚ะฐั‚ัŒะต ั€ะฐััะบะฐะถะตะผ, ั‡ั‚ะพ ะพะฝ ัƒะผะตะตั‚ ะธ ะบะฐะบ ะธะผ ะฟะพะปัŒะทะพะฒะฐั‚ัŒัั.

    habr.com/ru/companies/hh/artic

    #ios #uiั‚ะตัั‚ั‹ #uiั‚ะตัั‚ะธั€ะพะฒะฐะฝะธะต #ั‚ะตัั‚ะธั€ะพะฒะฐะฝะธะต #swift #swiftui #uikit #xctest #xcuitest #dsl

  6. 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.

    #ios #testing #UITesting #XCTest #accessibility #a11y

  7. I open sourced a new Swift Package.

    ๐—ซ๐—–๐—จ๐—œ๐—ง๐—ฒ๐˜€๐˜๐—›๐—ฒ๐—น๐—ฝ๐—ฒ๐—ฟ
    ๐š‡๐™ฒ๐š„๐™ธ๐šƒ๐šŽ๐šœ๐š๐™ท๐šŽ๐š•๐š™๐šŽ๐š› ๐š‘๐šŽ๐š•๐š™๐šœ ๐šข๐š˜๐šž ๐š ๐š›๐š’๐š๐š’๐š—๐š ๐š„๐™ธ ๐š๐šŽ๐šœ๐š๐šœ ๐š ๐š’๐š๐š‘๐š’๐š— ๐š‚๐š ๐š’๐š๐š๐š„๐™ธ. ๐™ธ๐š ๐š™๐š›๐š˜๐šŸ๐š’๐š๐šŽ๐šœ ๐šŠ ๐šœ๐šŽ๐š ๐š˜๐š ๐šž๐šœ๐šŽ๐š๐šž๐š• ๐šŽ๐šก๐š๐šŽ๐š—๐šœ๐š’๐š˜๐š—๐šœ ๐š˜๐š— ๐š‡๐™ฒ๐š„๐™ธ๐™ฐ๐š™๐š™๐š•๐š’๐šŒ๐šŠ๐š๐š’๐š˜๐š—, ๐š‡๐™ฒ๐š„๐™ธ๐™ด๐š•๐šŽ๐š–๐šŽ๐š—๐š ๐šŠ๐š—๐š ๐š‡๐™ฒ๐š„๐™ธ๐™ด๐š•๐šŽ๐š–๐šŽ๐š—๐š๐š€๐šž๐šŽ๐š›๐šข ๐š๐š˜ ๐š–๐šŠ๐š”๐šŽ ๐šข๐š˜๐šž๐š› ๐š๐šŽ๐šœ๐š๐šœ ๐š–๐š˜๐š›๐šŽ ๐š›๐šŽ๐šŠ๐š๐šŠ๐š‹๐š•๐šŽ ๐šŠ๐š—๐š ๐šŽ๐šŠ๐šœ๐š’๐šŽ๐š› ๐š๐š˜ ๐š–๐šŠ๐š’๐š—๐š๐šŠ๐š’๐š—.

    github.com/0xWDG/XCUITestHelpe

    #Swiftlang #XCTest #UITesting #Xcode #XCTestCase #SwiftUI #iOS #macOS #oss

  8. I open sourced a new Swift Package.

    ๐—ซ๐—–๐—จ๐—œ๐—ง๐—ฒ๐˜€๐˜๐—›๐—ฒ๐—น๐—ฝ๐—ฒ๐—ฟ
    ๐š‡๐™ฒ๐š„๐™ธ๐šƒ๐šŽ๐šœ๐š๐™ท๐šŽ๐š•๐š™๐šŽ๐š› ๐š‘๐šŽ๐š•๐š™๐šœ ๐šข๐š˜๐šž ๐š ๐š›๐š’๐š๐š’๐š—๐š ๐š„๐™ธ ๐š๐šŽ๐šœ๐š๐šœ ๐š ๐š’๐š๐š‘๐š’๐š— ๐š‚๐š ๐š’๐š๐š๐š„๐™ธ. ๐™ธ๐š ๐š™๐š›๐š˜๐šŸ๐š’๐š๐šŽ๐šœ ๐šŠ ๐šœ๐šŽ๐š ๐š˜๐š ๐šž๐šœ๐šŽ๐š๐šž๐š• ๐šŽ๐šก๐š๐šŽ๐š—๐šœ๐š’๐š˜๐š—๐šœ ๐š˜๐š— ๐š‡๐™ฒ๐š„๐™ธ๐™ฐ๐š™๐š™๐š•๐š’๐šŒ๐šŠ๐š๐š’๐š˜๐š—, ๐š‡๐™ฒ๐š„๐™ธ๐™ด๐š•๐šŽ๐š–๐šŽ๐š—๐š ๐šŠ๐š—๐š ๐š‡๐™ฒ๐š„๐™ธ๐™ด๐š•๐šŽ๐š–๐šŽ๐š—๐š๐š€๐šž๐šŽ๐š›๐šข ๐š๐š˜ ๐š–๐šŠ๐š”๐šŽ ๐šข๐š˜๐šž๐š› ๐š๐šŽ๐šœ๐š๐šœ ๐š–๐š˜๐š›๐šŽ ๐š›๐šŽ๐šŠ๐š๐šŠ๐š‹๐š•๐šŽ ๐šŠ๐š—๐š ๐šŽ๐šŠ๐šœ๐š’๐šŽ๐š› ๐š๐š˜ ๐š–๐šŠ๐š’๐š—๐š๐šŠ๐š’๐š—.

    github.com/0xWDG/XCUITestHelpe

    #Swiftlang #XCTest #UITesting #Xcode #XCTestCase #SwiftUI #iOS #macOS #oss

  9. Had to knock off most of the last week after having come down with a bout of the the 'flu. But I did try @mattiem's suggestion of creating a separate #swift library package to be able to run #XCTest unit tests on code for a command line script. Works as expected.

  10. Had to knock off most of the last week after having come down with a bout of the the 'flu. But I did try @mattiem's suggestion of creating a separate #swift library package to be able to run #XCTest unit tests on code for a command line script. Works as expected.

  11. ะ’ะฒะตะดะตะฝะธะต ะฒ ั‚ะตัั‚ะธั€ะพะฒะฐะฝะธะต ะฝะฐ Swift Testing

    XCTest ัะฒะปัะตั‚ัั ะพัะฝะพะฒะฝั‹ะผ ะธะฝัั‚ั€ัƒะผะตะฝั‚ะพะผ ะดะปั ั‚ะตัั‚ะธั€ะพะฒะฐะฝะธั ะฒ Swift ะธ ัˆะธั€ะพะบะพ ะธัะฟะพะปัŒะทัƒะตั‚ัั ั€ะฐะทั€ะฐะฑะพั‚ั‡ะธะบะฐะผะธ. ะžะดะฝะฐะบะพ, ะฝะพะฒะฐั ะฑะธะฑะปะธะพั‚ะตะบะฐ Testing ะฟั€ะตะดะปะฐะณะฐะตั‚ ะดะพะฟะพะปะฝะธั‚ะตะปัŒะฝั‹ะต ะฒะพะทะผะพะถะฝะพัั‚ะธ ะธ ัะธะฝั‚ะฐะบัะธั‡ะตัะบะธะน ัะฐั…ะฐั€, ะบะพั‚ะพั€ั‹ะน ะดะตะปะฐะตั‚ ะฟั€ะพั†ะตัั ั‚ะตัั‚ะธั€ะพะฒะฐะฝะธั ะตั‰ะต ะฑะพะปะตะต ัƒะดะพะฑะฝั‹ะผ ะธ ะผะพั‰ะฝั‹ะผ. ะ’ ะดะฐะฝะฝะพะน ัั‚ะฐั‚ัŒะต ะผั‹ ั€ะฐััะผะพั‚ั€ะธะผ ะพัะฝะพะฒะฝั‹ะต ะฐัะฟะตะบั‚ั‹ ั‚ะตัั‚ะธั€ะพะฒะฐะฝะธั ะฝะฐ Swift, ะฒะบะปัŽั‡ะฐั ะธัะฟะพะปัŒะทะพะฒะฐะฝะธะต ะฑะธะฑะปะธะพั‚ะตะบะธ Testing.

    habr.com/ru/articles/823396/

    #swift #testing #swift__ั€ะฐะทั€ะฐะฑะพั‚ะบะฐ #swift_development #xcode #xctest

  12. How to specfiy file/directory in file open dialog in a UI test using XCTest?

    Using #XCTest for UI testing a #SwiftUI app, is it possible to specify a file/directory to be selected in a file open dialog? (Specifically, the one from a fileImporter call in SwiftUI; on both iOS and macOS.)

  13. How to specfiy file/directory in file open dialog in a UI test using XCTest?

    Using #XCTest for UI testing a #SwiftUI app, is it possible to specify a file/directory to be selected in a file open dialog? (Specifically, the one from a fileImporter call in SwiftUI; on both iOS and macOS.)

  14. ๐Ÿ“ก If you work on #Xcode at #Apple, especially on #XCTest, please have a look at FB13673372, which included a reproducible sample project for test diamonds disappearing.

  15. ๐Ÿ“ก If you work on #Xcode at #Apple, especially on #XCTest, please have a look at FB13673372, which included a reproducible sample project for test diamonds disappearing.

  16. Itโ€™d be awesome if swift-testing supported disabling of tests at runtime. We could plug @tuist Cloud into that and use data about flakiness to disable the execution of flaky tests. Or maybe thatโ€™s already possible with #XCTest

  17. 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?

    #swiftlang #xctest #xctestcase #mirror

  18. 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?

    #swiftlang #xctest #xctestcase #mirror

  19. TIL: waitForExpectations(timeout:handler:) is called fulfillment(of:timeout:enforceOrder:) in asynchronous unit tests. #Swift #XCTest

  20. Quick tip for running specific tests when Xcode stops showing the run test buttons in the text gutter paul-samuels.com/blog/2023/10/

    #xcode #xctest

  21. 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
    qualitycoding.org/swift-memory

  22. 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
    qualitycoding.org/swift-memory

  23. 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.

    github.com/angu-software/Swift

    #swift #xctest #asyncawait #unittest

  24. 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.

    github.com/angu-software/Swift

  25. #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?

    github.com/pointfreeco/swift-s

  26. TIL about developer.apple.com/documentat:
    expectation(
    forNotification notificationName: NSNotification.Name,
    object objectToObserve: Any?,
    notificationCenter: NotificationCenter,
    handler: XCTNSNotificationExpectation.Handler? = nil
    )

    Extremely convenient for unit testing Notifications being sent. Nice!

    #iOSDev #XCTest

  27. TIL about developer.apple.com/documentat:
    expectation(
    forNotification notificationName: NSNotification.Name,
    object objectToObserve: Any?,
    notificationCenter: NotificationCenter,
    handler: XCTNSNotificationExpectation.Handler? = nil
    )

    Extremely convenient for unit testing Notifications being sent. Nice!

    #iOSDev #XCTest

  28. โ€œThe best time to build a test was before the first commit. The next best time is now.โ€ โ€“ Proverbious the Commitor, probably

    whynotestflight.com/excuses/he

    #XCode #XCTest #SwiftLang #UnitTesting #Equatable

  29. โ€œThe best time to build a test was before the first commit. The next best time is now.โ€ โ€“ Proverbious the Commitor, probably

    whynotestflight.com/excuses/he

    #XCode #XCTest #SwiftLang #UnitTesting #Equatable

  30. 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โ€ฆ

    #XCTest #UITesting #iOSDev #SwiftUI

  31. 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โ€ฆ

    #XCTest #UITesting #iOSDev #SwiftUI

  32. #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. jaanus.com/snapshot-testing-xc

  33. #Swift enumerations: How to write #XCTest assertions to verify them? What about associated values? qualitycoding.org/unit-test-en

  34. #Swift enumerations: How to write #XCTest assertions to verify them? What about associated values? qualitycoding.org/unit-test-en

  35. 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.

    developer.apple.com/forums/thr

    #iOSDev #XCTest #UITesting #Swift

  36. 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.

    developer.apple.com/forums/thr

    #iOSDev #XCTest #UITesting #Swift

  37. #Swift enumerations: How to write #XCTest assertions to verify them? What about associated values? qualitycoding.org/unit-test-en

  38. #Swift enumerations: How to write #XCTest assertions to verify them? What about associated values? qualitycoding.org/unit-test-en

  39. #Swift enumerations: How to write #XCTest assertions to verify them? What about associated values? qualitycoding.org/unit-test-en

  40. #Swift enumerations: How to write #XCTest assertions to verify them? What about associated values? qualitycoding.org/unit-test-en

  41. 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.

  42. 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.

  43. #Swift enumerations: How to write #XCTest assertions to verify them? How do we test their associated values? Can we avoid overspecified tests? qualitycoding.org/unit-test-en

  44. #Swift enumerations: How to write #XCTest assertions to verify them? How do we test their associated values? Can we avoid overspecified tests? qualitycoding.org/unit-test-en

  45. 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.

  46. 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.

  47. FB11933090: Provide option to follow Test Plan order in initializing Test Targets irrespective of "Run in Parallel" status

    #Xcode #XCTest

  48. FB11933090: Provide option to follow Test Plan order in initializing Test Targets irrespective of "Run in Parallel" status

    #Xcode #XCTest

  49. 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: github.com/kif-framework/KIF/i

  50. 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:
    kazaimazai.com/parametrized-xc

    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