Леша Денисов написал пост про устройство инструмента для мутационного тестирования Mull, разные используемые оптимизации и дальнейшие планы по развитию.
https://lowlevelbits.org/mutation-testing-implementation-details/
#testing
https://lowlevelbits.org/mutation-testing-implementation-details/
#testing
lowlevelbits.org
Mutation Testing: implementation details
Brain dump of Mull's internals
Вместе с Xcode 9 занесли кучу изменений в работе XCTest и XCUITest. В статье подбивают все из них и дают ссылки на примеры использования. Выглядят обновления очень адекватно, к слову.
https://dzone.com/articles/new-xcuitest-features-with-xcode-9-hands-on-explor
#testing #xcode
https://dzone.com/articles/new-xcuitest-features-with-xcode-9-hands-on-explor
#testing #xcode
DZone
New XCUITest Features With Xcode 9: Hands-on Exploration
Xcode9's XCTest framework now offers new features for UI testing like parallel and multi-app testing for Swift in Apple platforms, including iOS on mobile.
Подъехали видеозаписи с iOS митапа Альфалаба. В программе Swift 4, SwiftLint и автотесты.
https://www.facebook.com/alfalabofficial/videos/324709957984778/
#meetups #swift #testing
https://www.facebook.com/alfalabofficial/videos/324709957984778/
#meetups #swift #testing
Facebook
Альфа-Лаборатория
Для тех, кто пропустил, или не может забыть митап iOS-разработчиков MOBILE TALKS, оставляем здесь запись мероприятия 👇
Набор неплохих практик для борьбы с flakiness (сходу русский термин не подобрал) в unit и UI тестах.
https://www.swiftbysundell.com/posts/reducing-flakiness-in-swift-tests
#testing
https://www.swiftbysundell.com/posts/reducing-flakiness-in-swift-tests
#testing
Swift by Sundell
Reducing flakiness in Swift tests | Swift by Sundell
Flakiness is what happens when tests don't run consistently, when different circumstances produce different results. This week, let's take a look at some easy-to-apply tips and tricks that can help reduce flakiness, and make our tests more predictable within…
Интересный рисерч на тему того, как процент покрытия юнит-тестами влияет на качество кодовой базы: цикломатическую сложность, размер функций, количество параметров и прочее.
https://blog.ndepend.com/unit-testing-affect-codebases/
#testing
https://blog.ndepend.com/unit-testing-affect-codebases/
#testing
NDepend Blog
Unit Testing Doesn't Affect Codebases the Way You Would Think
I did yet another study on 100 codebases, this time to see the effects of unit testing. The results surprised me, and I'm guessing they'll surprise you.
Разбираемся, как правильно работать с моками в свифте.
https://www.swiftbysundell.com/posts/mocking-in-swift
#testing #swift
https://www.swiftbysundell.com/posts/mocking-in-swift
#testing #swift
Swift by Sundell
Mocking in Swift | Swift by Sundell
Mocking is a key technique when it comes to writing unit tests in pretty much any language. Whether we're testing networking code, code relying on hardware sensors like the accelerometer, or code using system APIs like location services - mocking can enable…
Отличный вводный материал в юнит-тесты от Андрея Мишанина – зачем их писать, нужны ли тесты вместе с системой типов, как их поддерживать и куча чего еще.
http://andrey-mishanin.ru/unit-testing-why-and-what.html
#testing
http://andrey-mishanin.ru/unit-testing-why-and-what.html
#testing
Разбор одного из классических примеров того, как стандартный баг влечет за собой огромные последствия. Разбираемся, как неявное приведение типов привело к тому, что ракета взорвалась в воздухе.
https://www.cs.jhu.edu/~jorgev/cs106/bug.pdf
#testing
https://www.cs.jhu.edu/~jorgev/cs106/bug.pdf
#testing
Очень детальный гайд по использованию libFuzzer со свифтом. Если кто-то заведет, расскажите в @iosgt, с радостью послушаем.
https://loic.land/2018/04/06/fuzzing.html
#fuzzing #testing
https://loic.land/2018/04/06/fuzzing.html
#fuzzing #testing
loic.land
How to fuzz-test a Swift package
random articles
Про особенности тестирования геолокации. Жизнь это боль.
https://habr.com/company/jugru/blog/354500/
#testing
https://habr.com/company/jugru/blog/354500/
#testing
Habr
Тестирование геолокации в Badoo: шишки, камни, костыли и селфи-палка
Вроде бы о тестировании мобильных приложений есть уже тысячи материалов, так что удивить тут сложно. Но пока аспекты вроде UI уже затёрты до дыр, про тестирование геолокации рассказывают гораздо реже....
Расшифровка доклада прошлогоднего AppsConf про использование UI тестов.
https://habr.com/company/oleg-bunin/blog/353276/
#testing
https://habr.com/company/oleg-bunin/blog/353276/
#testing
Хабр
UI-тесты в iOS проекте. Есть ли профит и для чего их вообще внедряют
Людей, которые не просто хотя бы раз писали UI-тесты, а делали бы это в коммерческих проектах, довольно мало, потому что эту часть разработки очень сложно продат...
Проекту Mull, реализующему мутационное тестирование для языков на базе LLVM, нужна помощь в адаптации свифта. По ссылке – описание концепции и первых шагов.
https://stanislaw.github.io/2018/09/03/mull-and-swift-how-it-almost-works.html
#testing
https://stanislaw.github.io/2018/09/03/mull-and-swift-how-it-almost-works.html
#testing
Про тестирование снепшотами с помощью новой свифтовой либы.
https://www.pointfree.co/blog/posts/23-snapshottesting-1-0-delightful-swift-snapshot-testing
#testing #swift
https://www.pointfree.co/blog/posts/23-snapshottesting-1-0-delightful-swift-snapshot-testing
#testing #swift
www.pointfree.co
SnapshotTesting 1.0: Delightful Swift snapshot testing
Today we are open sourcing SnapshotTesting 1.0: a modern, composable snapshot testing library built entirely in Swift!
Подробный обзор Emcee – авитовского раннера UI тестов. Даже если вы не пишете их на регулярной основе, все равно советую почитать и покопать исходники – это как минимум очень интересно.
https://medium.com/avitotech/emcee-ios-ui-testing-infrastructure-at-avito-6aec41de4688
#testing #tools
https://medium.com/avitotech/emcee-ios-ui-testing-infrastructure-at-avito-6aec41de4688
#testing #tools
Medium
Emcee — Open Source Tool for iOS UI Testing Infrastructure
A short intro to our tool for running iOS UI tests.
Вышел выпуск Cppcast с Алексеем Денисовым про мутационное тестирование для языков на LLVM.
https://cppcast.com/2019/05/alex-denisov/
#llvm #tools #testing
https://cppcast.com/2019/05/alex-denisov/
#llvm #tools #testing
Cppcast
Mutation Testing with Mull - CppCast
CppCast is the first podcast for C++ developers by C++ developers.
Написали о том, как вы можете сделать ваши e2e UI тесты зеленее и стабильнее.
https://medium.com/avitotech/e2e-ios-ui-tests-lots-green-on-pr-24f30e08e81d
#testing
https://medium.com/avitotech/e2e-ios-ui-tests-lots-green-on-pr-24f30e08e81d
#testing
Medium
E2E iOS UI Tests: Lots, Green, on PR
It’s been a year since we set out to automate our regression test suite. And we have achieved a lot. We’ve managed to reduce the testing…
Из-за WWDC почти не выходит годных материалов не про SwiftUI. Откопал вот небольшую статью про то, как правильно подходить к тестированию границ модулей.
https://8thlight.com/blog/ashley-bye/2019/06/04/unit-test-code-boundaries.html
#testing
https://8thlight.com/blog/ashley-bye/2019/06/04/unit-test-code-boundaries.html
#testing
8th Light
Unit Testing Code Boundaries | 8th Light
When I first learned to unit test my software, I noticed that I struggled to test code that interacted with components at the boundaries of my design. These components would often be input/output related, whether that was getting input from the comma...
Техники работы с данными для тестов.
https://www.swiftbysundell.com/posts/defining-testing-data-in-swift
#testing
https://www.swiftbysundell.com/posts/defining-testing-data-in-swift
#testing
Swift by Sundell
Defining testing data in Swift | Swift by Sundell
While a big part of writing testable code comes down to how our dependencies are managed, how we structure and manage our testing data is often equally important. This week, let’s take a look at a few different techniques that can enable us to define such…
Как работает под капотом функция measureBlock в XCTest.
https://tlextrait.svbtle.com/measureblock-how-does-it-work
#testing #performance
https://tlextrait.svbtle.com/measureblock-how-does-it-work
#testing #performance
Thomas Lextrait on Svbtle
measureBlock: How Does Performance Testing Work In iOS?
I was working on a mini project at Square involving performance unit testing for iOS. Essentially I’m looking into how we could introduce performance unit testing, what our options are and how it would scale on our CI. In this post I’ll just focus...
Интересный опыт автоматизации тестирования внутренних покупок в Badoo.
https://habr.com/ru/company/badoo/blog/460667/
#testing
https://habr.com/ru/company/badoo/blog/460667/
#testing
Хабр
Автоматизация тестирования платных сервисов на iOS
Для тех, кто интересуется темой автоматизации на iOS, у меня две новости — хорошая и плохая. Хорошая: в iOS-приложении для платных сервисов используется только одна точка интеграции — in-app...