mastodon.world is one of the many independent Mastodon servers you can use to participate in the fediverse.
Generic Mastodon server for anyone to use.

Server stats:

8.8K
active users

#xctest

0 posts0 participants0 posts today
Habr<p>Rafinad: сахар для UI-тестирования iOS-приложений</p><p>Мы в hh очень любим UI-тесты, ими покрывается практически вся функциональность наших приложений, и даже backend-разработчики прогоняют тесты мобильных платформ перед развертыванием своих фич. Однако наши механизмы UI-тестирования разрабатывались более 8 лет назад и с тех пор почти не изменились. Кто-то скажет, что старые решения прошли проверку временем и что «работает — не трогай»... Возможно, и так. Но сейчас мы внедряем новую дизайн-систему, а новые компоненты требуют адаптации всех тестов — не лучшее ли время для перемен? Поэтому мы пересмотрели наши подходы к UI-тестированию и теперь готовы поделиться наработками с сообществом в виде open-source проекта — Rafinad . В этой статье расскажем, что он умеет и как им пользоваться.</p><p><a href="https://habr.com/ru/companies/hh/articles/910380/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">habr.com/ru/companies/hh/artic</span><span class="invisible">les/910380/</span></a></p><p><a href="https://zhub.link/tags/ios" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ios</span></a> <a href="https://zhub.link/tags/ui%D1%82%D0%B5%D1%81%D1%82%D1%8B" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>uiтесты</span></a> <a href="https://zhub.link/tags/ui%D1%82%D0%B5%D1%81%D1%82%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>uiтестирование</span></a> <a href="https://zhub.link/tags/%D1%82%D0%B5%D1%81%D1%82%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>тестирование</span></a> <a href="https://zhub.link/tags/swift" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>swift</span></a> <a href="https://zhub.link/tags/swiftui" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>swiftui</span></a> <a href="https://zhub.link/tags/uikit" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>uikit</span></a> <a href="https://zhub.link/tags/xctest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>xctest</span></a> <a href="https://zhub.link/tags/xcuitest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>xcuitest</span></a> <a href="https://zhub.link/tags/dsl" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>dsl</span></a></p>
Gunnarsson<p>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. </p><p><a href="https://mastodon.social/tags/ios" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ios</span></a> <a href="https://mastodon.social/tags/testing" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>testing</span></a> <a href="https://mastodon.social/tags/UITesting" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UITesting</span></a> <a href="https://mastodon.social/tags/XCTest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>XCTest</span></a> <a href="https://mastodon.social/tags/accessibility" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>accessibility</span></a> <a href="https://mastodon.social/tags/a11y" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>a11y</span></a></p>
Wesley de Groot 🥷<p>I open sourced a new Swift Package.</p><p>𝗫𝗖𝗨𝗜𝗧𝗲𝘀𝘁𝗛𝗲𝗹𝗽𝗲𝗿<br>𝚇𝙲𝚄𝙸𝚃𝚎𝚜𝚝𝙷𝚎𝚕𝚙𝚎𝚛 𝚑𝚎𝚕𝚙𝚜 𝚢𝚘𝚞 𝚠𝚛𝚒𝚝𝚒𝚗𝚐 𝚄𝙸 𝚝𝚎𝚜𝚝𝚜 𝚠𝚒𝚝𝚑𝚒𝚗 𝚂𝚠𝚒𝚏𝚝𝚄𝙸. 𝙸𝚝 𝚙𝚛𝚘𝚟𝚒𝚍𝚎𝚜 𝚊 𝚜𝚎𝚝 𝚘𝚏 𝚞𝚜𝚎𝚏𝚞𝚕 𝚎𝚡𝚝𝚎𝚗𝚜𝚒𝚘𝚗𝚜 𝚘𝚗 𝚇𝙲𝚄𝙸𝙰𝚙𝚙𝚕𝚒𝚌𝚊𝚝𝚒𝚘𝚗, 𝚇𝙲𝚄𝙸𝙴𝚕𝚎𝚖𝚎𝚗𝚝 𝚊𝚗𝚍 𝚇𝙲𝚄𝙸𝙴𝚕𝚎𝚖𝚎𝚗𝚝𝚀𝚞𝚎𝚛𝚢 𝚝𝚘 𝚖𝚊𝚔𝚎 𝚢𝚘𝚞𝚛 𝚝𝚎𝚜𝚝𝚜 𝚖𝚘𝚛𝚎 𝚛𝚎𝚊𝚍𝚊𝚋𝚕𝚎 𝚊𝚗𝚍 𝚎𝚊𝚜𝚒𝚎𝚛 𝚝𝚘 𝚖𝚊𝚒𝚗𝚝𝚊𝚒𝚗.</p><p><a href="https://github.com/0xWDG/XCUITestHelper" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/0xWDG/XCUITestHelpe</span><span class="invisible">r</span></a></p><p><a href="https://mastodon.social/tags/Swiftlang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Swiftlang</span></a> <a href="https://mastodon.social/tags/XCTest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>XCTest</span></a> <a href="https://mastodon.social/tags/UITesting" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UITesting</span></a> <a href="https://mastodon.social/tags/Xcode" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Xcode</span></a> <a href="https://mastodon.social/tags/XCTestCase" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>XCTestCase</span></a> <a href="https://mastodon.social/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftUI</span></a> <a href="https://mastodon.social/tags/iOS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>iOS</span></a> <a href="https://mastodon.social/tags/macOS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>macOS</span></a> <a href="https://mastodon.social/tags/oss" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>oss</span></a></p>
sumanthvepa<p>Had to knock off most of the last week after having come down with a bout of the the 'flu. But I did try <span class="h-card" translate="no"><a href="https://mastodon.social/@mattiem" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>mattiem</span></a></span>'s suggestion of creating a separate <a href="https://mastodon.social/tags/swift" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>swift</span></a> library package to be able to run <a href="https://mastodon.social/tags/XCTest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>XCTest</span></a> unit tests on code for a command line script. Works as expected.</p>
sumanthvepa<p>Hmm... Apparently one cannot create an <a href="https://mastodon.social/tags/XCTest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>XCTest</span></a> target for a command line app in <a href="https://mastodon.social/tags/Xcode" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Xcode</span></a>. Why does <a href="https://mastodon.social/tags/Apple" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Apple</span></a> hate the command line? <a href="https://mastodon.social/tags/swift" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>swift</span></a><br><a href="https://stackoverflow.com/questions/34097287/xcode-7-cant-create-a-swift-command-line-tool-with-a-unit-test-target" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">stackoverflow.com/questions/34</span><span class="invisible">097287/xcode-7-cant-create-a-swift-command-line-tool-with-a-unit-test-target</span></a></p>
Habr<p>Введение в тестирование на Swift Testing</p><p>XCTest является основным инструментом для тестирования в Swift и широко используется разработчиками. Однако, новая библиотека Testing предлагает дополнительные возможности и синтаксический сахар, который делает процесс тестирования еще более удобным и мощным. В данной статье мы рассмотрим основные аспекты тестирования на Swift, включая использование библиотеки Testing.</p><p><a href="https://habr.com/ru/articles/823396/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">habr.com/ru/articles/823396/</span><span class="invisible"></span></a></p><p><a href="https://zhub.link/tags/swift" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>swift</span></a> <a href="https://zhub.link/tags/testing" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>testing</span></a> <a href="https://zhub.link/tags/swift__%D1%80%D0%B0%D0%B7%D1%80%D0%B0%D0%B1%D0%BE%D1%82%D0%BA%D0%B0" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>swift__разработка</span></a> <a href="https://zhub.link/tags/swift_development" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>swift_development</span></a> <a href="https://zhub.link/tags/xcode" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>xcode</span></a> <a href="https://zhub.link/tags/xctest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>xctest</span></a></p>
What’s That Function SwiftUI<p>How to specfiy file/directory in file open dialog in a UI test using XCTest?</p><p>Using <a href="https://iosdev.space/tags/XCTest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>XCTest</span></a> for UI testing a <a href="https://iosdev.space/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftUI</span></a> 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.)</p>
mb<p>📡 If you work on <a href="https://mastodon.social/tags/Xcode" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Xcode</span></a> at <a href="https://mastodon.social/tags/Apple" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Apple</span></a>, especially on <a href="https://mastodon.social/tags/XCTest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>XCTest</span></a>, please have a look at FB13673372, which included a reproducible sample project for test diamonds disappearing.</p>
Pedro Piñera<p>It’d be awesome if swift-testing supported disabling of tests at runtime. We could plug <span class="h-card" translate="no"><a href="https://fosstodon.org/@tuist" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>tuist</span></a></span> Cloud into that and use data about flakiness to disable the execution of flaky tests. Or maybe that’s already possible with <a href="https://mastodon.social/tags/XCTest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>XCTest</span></a></p>
Uli Kusterer (Not a kitteh)<p>Huh. Why does Swift's Mirror(reflecting:) only list properties, not methods?</p><p>Is there an alternative way to get a list of all methods? How does XCTest do it when I define a testXX method?</p><p><a href="https://chaos.social/tags/swiftlang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>swiftlang</span></a> <a href="https://chaos.social/tags/xctest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>xctest</span></a> <a href="https://chaos.social/tags/xctestcase" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>xctestcase</span></a> <a href="https://chaos.social/tags/mirror" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>mirror</span></a></p>
Paul Samuels<p>Quick tip for running specific tests when Xcode stops showing the run test buttons in the text gutter <a href="https://paul-samuels.com/blog/2023/10/24/missing-xcode-run-test-buttons/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">paul-samuels.com/blog/2023/10/</span><span class="invisible">24/missing-xcode-run-test-buttons/</span></a></p><p><a href="https://hachyderm.io/tags/xcode" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>xcode</span></a> <a href="https://hachyderm.io/tags/xctest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>xctest</span></a></p>
Jon Reid<p>Stay Ahead of Bugs: How XCTests Can Keep Your iOS App Leak-Free!<br>Detect memory leaks in your app using addTeardownBlock and a custom XCTestCase extension.<br><a href="https://iosdev.space/tags/Swift" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Swift</span></a> <a href="https://iosdev.space/tags/XCTest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>XCTest</span></a><br><a href="https://qualitycoding.org/swift-memory-leak-detection-xctest/" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="ellipsis">qualitycoding.org/swift-memory</span><span class="invisible">-leak-detection-xctest/</span></a></p>
Angu<p>Since XCTest does not support async expressions in its assert functions I released SwiftAsyncAsserts Swift package to fill that gap.</p><p>Write more readable testing code for your async type interfaces in Swift.</p><p><a href="https://github.com/angu-software/SwiftAsyncAssert" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/angu-software/Swift</span><span class="invisible">AsyncAssert</span></a></p><p><a href="https://techhub.social/tags/swift" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>swift</span></a> <a href="https://techhub.social/tags/xctest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>xctest</span></a> <a href="https://techhub.social/tags/asyncawait" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>asyncawait</span></a> <a href="https://techhub.social/tags/unittest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>unittest</span></a> <a href="https://techhub.social/tags/swiftdev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>swiftdev</span></a> <a href="https://techhub.social/tags/iosdev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>iosdev</span></a> <a href="https://techhub.social/tags/macdev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>macdev</span></a></p>
Alex Pretzlav 🥨<p>TIL about <a href="https://developer.apple.com/documentation/xctest/xctestcase/3042655-expectation" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">developer.apple.com/documentat</span><span class="invisible">ion/xctest/xctestcase/3042655-expectation</span></a>: <br>expectation(<br> forNotification notificationName: NSNotification.Name,<br> object objectToObserve: Any?,<br> notificationCenter: NotificationCenter,<br> handler: XCTNSNotificationExpectation.Handler? = nil<br>)</p><p>Extremely convenient for unit testing Notifications being sent. Nice!</p><p><a href="https://mastodon.social/tags/iOSDev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>iOSDev</span></a> <a href="https://mastodon.social/tags/XCTest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>XCTest</span></a></p>
carlyn<p>“The best time to build a test was before the first commit. The next best time is now.” – Proverbious the Commitor, probably</p><p><a href="https://www.whynotestflight.com/excuses/hello-usd-part-13-test-test-test/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">whynotestflight.com/excuses/he</span><span class="invisible">llo-usd-part-13-test-test-test/</span></a></p><p><a href="https://mastodon.social/tags/XCode" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>XCode</span></a> <a href="https://mastodon.social/tags/XCTest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>XCTest</span></a> <a href="https://mastodon.social/tags/SwiftLang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftLang</span></a> <a href="https://mastodon.social/tags/UnitTesting" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UnitTesting</span></a> <a href="https://mastodon.social/tags/Equatable" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Equatable</span></a></p>
Łukasz Rutkowski<p>Anyone knows how to in iOS UI tests access text field present in navigation bar?</p><p>I have editable title set using View.navigationTitle(_:) function and want to write UI test for it. But I don&#39;t see anything useful in the hierarchy when it is visible…</p><p><a href="https://mastodon.world/tags/XCTest" class="mention hashtag" rel="tag">#<span>XCTest</span></a> <a href="https://mastodon.world/tags/UITesting" class="mention hashtag" rel="tag">#<span>UITesting</span></a> <a href="https://mastodon.world/tags/iOSDev" class="mention hashtag" rel="tag">#<span>iOSDev</span></a> <a href="https://mastodon.world/tags/SwiftUI" class="mention hashtag" rel="tag">#<span>SwiftUI</span></a></p>
Jon Reid<p><a href="https://iosdev.space/tags/Swift" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Swift</span></a> enumerations: How to write <a href="https://iosdev.space/tags/XCTest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>XCTest</span></a> assertions to verify them? What about associated values? <a href="https://qualitycoding.org/unit-test-enumerations-swift/" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="ellipsis">qualitycoding.org/unit-test-en</span><span class="invisible">umerations-swift/</span></a></p>
Jens Nerup 🇬🇱<p>Hi all, I have a question I hope some of you can help me clarify. Working with a SPM test target and I would like to launch an implementation of `XCTestObservation`. In Xcode I would use the `NSPrincipleClass` (in the Info.plist) to kick off the observer but how would I do that in a SPM test target? I could start the observer from a test case but it kind of feels wrong.</p><p><a href="https://mastodon.social/tags/swift" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>swift</span></a> <a href="https://mastodon.social/tags/xctest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>xctest</span></a></p>
Łukasz Rutkowski<p>Cool trick I learned for UI tests in Xcode. You can set &quot;TZ&quot; launch environment value to force the app to use provided time zone. Useful when testing layout that displays formatted dates. </p><p><a href="https://developer.apple.com/forums/thread/86951?answerId=263395022#263395022" target="_blank" rel="nofollow noopener noreferrer" translate="no"><span class="invisible">https://</span><span class="ellipsis">developer.apple.com/forums/thr</span><span class="invisible">ead/86951?answerId=263395022#263395022</span></a></p><p><a href="https://mastodon.world/tags/iOSDev" class="mention hashtag" rel="tag">#<span>iOSDev</span></a> <a href="https://mastodon.world/tags/XCTest" class="mention hashtag" rel="tag">#<span>XCTest</span></a> <a href="https://mastodon.world/tags/UITesting" class="mention hashtag" rel="tag">#<span>UITesting</span></a> <a href="https://mastodon.world/tags/Swift" class="mention hashtag" rel="tag">#<span>Swift</span></a></p>
Jon Reid<p><a href="https://iosdev.space/tags/Swift" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Swift</span></a> enumerations: How to write <a href="https://iosdev.space/tags/XCTest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>XCTest</span></a> assertions to verify them? What about associated values? <a href="https://qualitycoding.org/unit-test-enumerations-swift/" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="ellipsis">qualitycoding.org/unit-test-en</span><span class="invisible">umerations-swift/</span></a></p>