#unitTesting

Digital Mark λ ☕️ 🔪 🙄mdhughes@appdot.net
2025-06-18

@nedbat I'm used to JUnit's assertEquals(expected, butgot) and it prints
Expected <<<x>>> but got <<<b>>>

Which is slightly better when you have long chunks of output (HTML and XML), butgot will be at the end instead of buried a page or two up. For short answers it doesn't matter.
#unitTesting #extremeProgramming #soExtreme!

2025-06-14

Настраиваем CI/CD Android-проекта, часть 1. Начало

Всем привет, меня зовут Кирилл и я Android-разработчик в Scanny. Это первая часть из серии статей про CI/CD для Android-проекта. В рамках данной серии статей я расскажу как настраивать GitLab CI/CD, который покроет базовые потребности в Unit и Android-тестировании, сборке приложения, публикации в Play Market и многом другом. Дополнительно я разберу работу с разными инструментами для Android-тестирования в лице Marathon Labs и Firebase Test Lab. Аналогично разберу работу с Gradle Play Publisher и Fastlane для публикации приложения в Play Market.

habr.com/ru/companies/scanny/a

#ci #cd #android #scanny #unittesting #gitlabci

Rachel Brindleyounata@hachyderm.io
2025-06-13

My talk at OneMoreThing 2024 on #UnitTesting #SwiftUI and #SwiftConcurrency was recorded, but has yet to be edited and uploaded.
Last night, I published an edited form of my speaker notes from that talk to my blog.

blog.rachelbrindle.com/2025/06

#SwiftLang

2025-06-08

kitfucoda.medium.com/beyond-ha

The revelation came when I was adding a scheduler to the chatbot: What if I remove the hardcoding on the synchronization primitives? That worked right away, and as a bonus, it fixed all the unexplained problems I had with tests. It is interesting to see how a sudden flash of insight impacts the thought process and changes how code is written.

As shown in the article last week, we start from the main process, beginning with the setup of a ProcessPoolExecutor. All the synchronization primitives are sent individually to the run() function this time, given the simplified scope of this article. The setup for the FastAPI web module handles receiving a batch of data.

The background processing module was very basic, mostly just a proof-of-concept. Comparing the tests for the FastAPI application and the background module, the benefit is more apparent in the latter case. With the explicit passing of the queue object as an argument, there’s no more guesswork on which queue to patch in test.

Plus, as we are ensuring both the test and application are referring to the same queue now, we can pass real data into test, and ensure they are being received properly. Documenting the insight into blog posts can be seen as my attempt to think out loud. Perhaps we can go through the process of adapting it to our setup in a more generalized form in a future article.

#Python #FastAPI #AsynchronousProgramming #SoftwareArchitecture #UnitTesting #opentowork #fedihire #getfedihired

2025-06-05

For a long time, when I first started writing tests, I felt so unproductive writing tests. I would try to write the test as fast as possible so I could move on to the "real" code.

Then one day when a production deployment failed due to missing a simple test I realized the critical value of tests... darrenmcleod.com/2025/06/test-

#SoftwareDevelopment #TDD #UnitTesting

2025-06-05

Video 3 is out. You don't want the app launching (and mucking with networking, persistence, and analytics) during tests, do you? #Xcode #UnitTesting #SwiftUI youtube.com/watch?v=SSM2_a0_yI

2025-05-30

Покрытие процедурного кода в ООП проекте юнит-тестами в C++

Legacy проекты на С++ зачастую являются многокомпонентными, когда продукт использует несколько библиотек, которые имеют различную архитектуру для работы с ними. Обычно это: библиотеки, поставляемые как ООП решение (Некоторые модули boost, SOCI как пример) библиотеки, реализованные в функциональном стиле (OpenGL через С API, POSIX как пример) Из-за этого в итоговом проекте появляются сущности, которые внутри реализованы через классы, но внутри методов класса идет обращение к обычным функциям. Некоторые библиотеки имеют специфичные функции, которые для своей работы требуют первоначальную инициализацию. Как пример: поиск подключенных устройств и получение на них ссылок для дальнейшей работы или функции, которые требуют инициализации большого количества памяти. Вследствие этого возникает вопрос - как лучше реализовать покрытие юнит-тестами специфичных объектов, которые внутри себя имеют функции, требующие специальных условий для своей работы?

habr.com/ru/companies/megafon/

#c++ #gtest #google_testing_framework #mocking #unittesting #unittests

2025-05-29

Check out video 2 in my new series #Xcode #UnitTesting youtu.be/r21JXSQtvgs

2025-05-22

Spring. Аутентификация на reactive feign

В этой статье проведены параллели между обработкой ошибок в feign и reactivefeign клиентах на примере реализации starter, который реализует аутентификацию по OAuth 2.0 в spring reactive подходе. В этой статье не будет описания реактивного стека. Если Вы хотите разобраться, какие есть преимущества и зачем его применять, рекомендую посмотреть эту серию статей . В этой статье не будет сравнения реактивного и нереактивного подхода. Для этого есть такая статья . В этой статье я хочу показать, что перевод компонентов на реактивность - несложная задача по рефакторингу, которая не займет много времени. Добавить монетку в копилку того, что перевод на реактивность - процесс, основные затраты в котором нужно сделать на первом шаге, когда Вы решаетесь применять этот подход, а адаптировать существующие компоненты просто.

habr.com/ru/companies/alfastra

#java #springboot #reactor #keycloak #authentication #unittesting #tdd #feign #starter #webflux

Rachel Brindleyounata@hachyderm.io
2025-05-13

Sometimes you gotta sherlock yourself. I think that Swift Testing should have something akin to Nimble's Polling Expectations.

forums.swift.org/t/pitch-polli

Also, wow, macros are hard. I am so glad I don't have to write them on a day-to-day basis.

#SwiftLang #UnitTesting

Brian AllbeeBrianAllbee
2025-05-05

The next steps for the testing processes in a standard framework after the base functionality was initially established in v.0.0.3.

goblinfish-code.blogspot.com/2

2025-05-04

Юнит тесты роя агентов

🐝 Тестирование роя агентов Юнит тесты - единственный способ принять работу промпт инженера, так как не понятно, действительно ли он всё это время чатился с моделью или списал в работу на 5 минут пару недель времени. Так же, статья содержит типовые галлюцинации роя агентов, которые обязательно нужно проверить

habr.com/ru/articles/906730/

#typescript #javascript #python #openai #jest #unittesting #mock #ai #machinelearning #llm

Brian AllbeeBrianAllbee
2025-05-01

Implementing the second part of third layer in of the testing processes in a standard framework: Prescribing (requiring) a standard test-method structure/set for classes.

goblinfish-code.blogspot.com/2

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst